Refactored opening from toasts

implemented maps and map look up functions
This commit is contained in:
TranRed
2019-04-27 13:47:13 +02:00
committed by pajlada
parent 2be81aa877
commit c20629c165
4 changed files with 85 additions and 27 deletions
+4 -3
View File
@@ -4,7 +4,7 @@
#include "controllers/highlights/HighlightPhrase.hpp"
#include "controllers/moderationactions/ModerationAction.hpp"
#include "widgets/helper/CommonTexts.hpp"
#include "singletons/Toasts.hpp"
#include <pajlada/settings/setting.hpp>
#include <pajlada/settings/settinglistener.hpp>
@@ -173,8 +173,9 @@ public:
"qrc:/sounds/ping3.wav"};
BoolSetting notificationToast = {"/notifications/enableToast", false};
QStringSetting openFromToast = {"/notifications/openFromToast",
OPEN_IN_BROWSER};
QStringSetting openFromToast = {
"/notifications/openFromToast",
Toasts::findStringFromReaction(ToastReactions::openInBrowser)};
/// External tools
// Streamlink