Implemented requested changes

changed setting from String to int.
changed EnumCase

I used createComboBox only has an implementation that handles stringsettings. I implemented my own combobox to handle the ToastsSettings now. Not sure if this is the best way. Won't come up with something smarter for now.
This commit is contained in:
TranRed
2019-04-27 18:15:41 +02:00
committed by pajlada
parent c20629c165
commit 2a590adba7
5 changed files with 67 additions and 33 deletions
+2 -2
View File
@@ -173,9 +173,9 @@ public:
"qrc:/sounds/ping3.wav"};
BoolSetting notificationToast = {"/notifications/enableToast", false};
QStringSetting openFromToast = {
IntSetting openFromToast = {
"/notifications/openFromToast",
Toasts::findStringFromReaction(ToastReactions::openInBrowser)};
static_cast<int>(ToastReactions::OpenInBrowser)};
/// External tools
// Streamlink