kcms/tabbox: Update layout name in response to user input

The current index can change when populating the combobox.
This commit is contained in:
Vlad Zahorodnii 2024-02-07 14:18:13 +02:00
parent d3a2e07002
commit 4b7874391d

View file

@ -60,8 +60,8 @@ KWinTabBoxConfigForm::KWinTabBoxConfigForm(TabboxType type, TabBoxSettings *conf
connect(ui->orderMinimized, &QAbstractButton::clicked, this, &KWinTabBoxConfigForm::onOrderMinimizedMode);
connect(ui->showDesktop, &QAbstractButton::clicked, this, &KWinTabBoxConfigForm::onShowDesktopMode);
connect(ui->switchingModeCombo, qOverload<int>(&QComboBox::currentIndexChanged), this, &KWinTabBoxConfigForm::onSwitchingMode);
connect(ui->effectCombo, qOverload<int>(&QComboBox::currentIndexChanged), this, &KWinTabBoxConfigForm::onEffectCombo);
connect(ui->switchingModeCombo, &QComboBox::activated, this, &KWinTabBoxConfigForm::onSwitchingMode);
connect(ui->effectCombo, &QComboBox::activated, this, &KWinTabBoxConfigForm::onEffectCombo);
auto initShortcutWidget = [this](KKeySequenceWidget *widget, const char *name) {
widget->setCheckActionCollections({m_shortcuts->actionCollection()});