mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Connected ComboBox to currentIndexChanged
implemented proper connection to combobox (currentIndexChanged instead of currentTextChanged) Thanks, pajlada! FeelsGoodMan
This commit is contained in:
parent
2a590adba7
commit
a592a3e882
1 changed files with 4 additions and 4 deletions
|
@ -153,10 +153,10 @@ QComboBox *NotificationPage::createToastReactionComboBox(
|
||||||
},
|
},
|
||||||
managedConnections);
|
managedConnections);
|
||||||
|
|
||||||
QObject::connect(toastReactionOptions, &QComboBox::currentTextChanged,
|
QObject::connect(toastReactionOptions,
|
||||||
[setting](const QString &newValue) {
|
QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||||
getSettings()->openFromToast.setValue(static_cast<int>(
|
[](const int &newValue) {
|
||||||
Toasts::findReactionFromString(newValue)));
|
getSettings()->openFromToast.setValue(newValue);
|
||||||
});
|
});
|
||||||
|
|
||||||
return toastReactionOptions;
|
return toastReactionOptions;
|
||||||
|
|
Loading…
Reference in a new issue