mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 22:35:39 +00:00
Qt: Fix MSAA game settings not updating combo box on open
This commit is contained in:
parent
263f7b673b
commit
a902d9b409
|
@ -345,7 +345,7 @@ void GamePropertiesDialog::populateGameSettings()
|
||||||
{
|
{
|
||||||
QSignalBlocker sb(m_ui.userMSAAMode);
|
QSignalBlocker sb(m_ui.userMSAAMode);
|
||||||
const QVariant current_msaa_mode(
|
const QVariant current_msaa_mode(
|
||||||
QtUtils::GetMSAAModeValue(static_cast<uint>(gs.gpu_multisamples.value()), gs.gpu_per_sample_shading.has_value()));
|
QtUtils::GetMSAAModeValue(static_cast<uint>(gs.gpu_multisamples.value()), gs.gpu_per_sample_shading.value()));
|
||||||
const int current_msaa_index = m_ui.userMSAAMode->findData(current_msaa_mode);
|
const int current_msaa_index = m_ui.userMSAAMode->findData(current_msaa_mode);
|
||||||
if (current_msaa_index >= 0)
|
if (current_msaa_index >= 0)
|
||||||
m_ui.userMSAAMode->setCurrentIndex((current_msaa_index >= 0) ? current_msaa_index : 0);
|
m_ui.userMSAAMode->setCurrentIndex((current_msaa_index >= 0) ? current_msaa_index : 0);
|
||||||
|
|
Loading…
Reference in a new issue