fix: disable autoInvoke for emote settings (#3990)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2022-09-14 13:21:01 +02:00
committed by GitHub
parent 6a2c4fc098
commit c6ebb70e05
2 changed files with 21 additions and 13 deletions
+20 -12
View File
@@ -179,18 +179,26 @@ int Application::run(QApplication &qtApp)
this->windows->forceLayoutChannelViews();
});
getSettings()->enableBTTVGlobalEmotes.connect([this] {
this->twitch->reloadBTTVGlobalEmotes();
});
getSettings()->enableBTTVChannelEmotes.connect([this] {
this->twitch->reloadAllBTTVChannelEmotes();
});
getSettings()->enableFFZGlobalEmotes.connect([this] {
this->twitch->reloadFFZGlobalEmotes();
});
getSettings()->enableFFZChannelEmotes.connect([this] {
this->twitch->reloadAllFFZChannelEmotes();
});
getSettings()->enableBTTVGlobalEmotes.connect(
[this] {
this->twitch->reloadBTTVGlobalEmotes();
},
false);
getSettings()->enableBTTVChannelEmotes.connect(
[this] {
this->twitch->reloadAllBTTVChannelEmotes();
},
false);
getSettings()->enableFFZGlobalEmotes.connect(
[this] {
this->twitch->reloadFFZGlobalEmotes();
},
false);
getSettings()->enableFFZChannelEmotes.connect(
[this] {
this->twitch->reloadAllFFZChannelEmotes();
},
false);
return qtApp.exec();
}