feat: add settings to toggle BTTV/FFZ global/channel emotes (#3935)

* feat: add settings to disable BTTV/FFZ global/channel emotes

* docs: add changelog entry

* fix: capitalize `BTTV` and `FFZ`

* fix: rename and move settings
This commit is contained in:
nerix
2022-08-28 12:20:47 +02:00
committed by GitHub
parent 33db006635
commit c1af2c3faa
11 changed files with 108 additions and 10 deletions
+13
View File
@@ -179,6 +179,19 @@ 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();
});
return qtApp.exec();
}