Large Screen Proportion config is greyed out when Large Screen is not selected

This commit is contained in:
OpenSauce04 2024-05-26 21:59:18 +01:00
parent 779a0f4af2
commit 56683720c6

View File

@ -25,7 +25,17 @@ ConfigureLayout::ConfigureLayout(QWidget* parent)
connect(ui->layout_combobox,
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
[this](int currentIndex) {
ui->custom_layout_group->setEnabled(ui->layout_combobox->currentIndex() == 6);
ui->custom_layout_group->setEnabled(ui->layout_combobox->currentIndex() ==
(uint)(Settings::LayoutOption::CustomLayout));
});
ui->large_screen_proportion->setEnabled(
(Settings::values.layout_option.GetValue() == Settings::LayoutOption::LargeScreen));
connect(
ui->layout_combobox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
this, [this](int currentIndex) {
ui->large_screen_proportion->setEnabled(ui->layout_combobox->currentIndex() ==
(uint)(Settings::LayoutOption::LargeScreen));
});
connect(ui->bg_button, &QPushButton::clicked, this, [this] {