mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 15:45:42 +00:00
Qt: Fix incorrect value of combo postfx options
This commit is contained in:
parent
b65d2748b4
commit
5c42d3906a
|
@ -366,6 +366,7 @@ void PostProcessingShaderConfigWidget::createUi()
|
||||||
combo->setToolTip(tooltip);
|
combo->setToolTip(tooltip);
|
||||||
for (const std::string& combo_option : option.choice_options)
|
for (const std::string& combo_option : option.choice_options)
|
||||||
combo->addItem(QString::fromStdString(combo_option));
|
combo->addItem(QString::fromStdString(combo_option));
|
||||||
|
combo->setCurrentIndex(option.value[0].int_value);
|
||||||
connect(combo, &QComboBox::currentIndexChanged, [this, &option](int index) {
|
connect(combo, &QComboBox::currentIndexChanged, [this, &option](int index) {
|
||||||
option.value[0].int_value = index;
|
option.value[0].int_value = index;
|
||||||
updateConfigForOption(option);
|
updateConfigForOption(option);
|
||||||
|
|
Loading…
Reference in a new issue