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);
|
||||
|
||||
QObject::connect(toastReactionOptions, &QComboBox::currentTextChanged,
|
||||
[setting](const QString &newValue) {
|
||||
getSettings()->openFromToast.setValue(static_cast<int>(
|
||||
Toasts::findReactionFromString(newValue)));
|
||||
QObject::connect(toastReactionOptions,
|
||||
QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
[](const int &newValue) {
|
||||
getSettings()->openFromToast.setValue(newValue);
|
||||
});
|
||||
|
||||
return toastReactionOptions;
|
||||
|
|
Loading…
Reference in a new issue