Periodically free memory from unused images (#3915)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Daniel Sage
2022-09-04 07:23:14 -04:00
committed by GitHub
parent bc38d696bc
commit 8ec032fc84
7 changed files with 246 additions and 35 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ MessagePtr makeSystemMessage(const QString &text, const QTime &time)
EmotePtr makeAutoModBadge()
{
return std::make_shared<Emote>(Emote{
EmoteName{}, ImageSet{Image::fromPixmap(getResources().twitch.automod)},
EmoteName{},
ImageSet{Image::fromResourcePixmap(getResources().twitch.automod)},
Tooltip{"AutoMod"},
Url{"https://dashboard.twitch.tv/settings/moderation/automod"}});
}