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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 13 deletions

View file

@ -29,7 +29,7 @@
- Minor: Warn when parsing an environment variable fails. (#3904)
- Minor: Load missing messages from Recent Messages API upon reconnecting (#3878, #3932)
- Minor: Reduced image memory usage when running Chatterino for a long time. (#3915)
- Minor: Add settings to toggle BTTV/FFZ global/channel emotes (#3935)
- Minor: Add settings to toggle BTTV/FFZ global/channel emotes (#3935, #3990)
- Minor: Add AutoMod message flag filter. (#3938)
- Minor: Added whitespace trim to username field in nicknames (#3946)
- Minor: Added `Go to message` context menu action to search popup, mentions, usercard and reply threads. (#3953)

View file

@ -179,18 +179,26 @@ int Application::run(QApplication &qtApp)
this->windows->forceLayoutChannelViews();
});
getSettings()->enableBTTVGlobalEmotes.connect([this] {
getSettings()->enableBTTVGlobalEmotes.connect(
[this] {
this->twitch->reloadBTTVGlobalEmotes();
});
getSettings()->enableBTTVChannelEmotes.connect([this] {
},
false);
getSettings()->enableBTTVChannelEmotes.connect(
[this] {
this->twitch->reloadAllBTTVChannelEmotes();
});
getSettings()->enableFFZGlobalEmotes.connect([this] {
},
false);
getSettings()->enableFFZGlobalEmotes.connect(
[this] {
this->twitch->reloadFFZGlobalEmotes();
});
getSettings()->enableFFZChannelEmotes.connect([this] {
},
false);
getSettings()->enableFFZChannelEmotes.connect(
[this] {
this->twitch->reloadAllFFZChannelEmotes();
});
},
false);
return qtApp.exec();
}