Qt: Fix widescreen hack value for game settings

Also fixes an .ini entry being created on right click->properties.
This commit is contained in:
Connor McLaughlin 2020-08-24 00:49:40 +10:00
parent 784f4f7654
commit 032127a7d6

View file

@ -242,12 +242,12 @@ void GamePropertiesDialog::populateGameSettings()
}
if (gs.gpu_widescreen_hack.has_value())
{
QSignalBlocker sb(m_ui.userControllerType2);
m_ui.userWidescreenHack->setCheckState(Qt::Checked);
QSignalBlocker sb(m_ui.userWidescreenHack);
m_ui.userWidescreenHack->setCheckState(gs.gpu_widescreen_hack.value() ? Qt::Checked : Qt::Unchecked);
}
else
{
QSignalBlocker sb(m_ui.userControllerType2);
QSignalBlocker sb(m_ui.userWidescreenHack);
m_ui.userWidescreenHack->setCheckState(Qt::PartiallyChecked);
}
}