Only load emote list if the user has them activated

This commit is contained in:
Infi
2024-05-11 05:13:31 +02:00
parent 5d6acf7d08
commit fa41d22cb8
3 changed files with 35 additions and 21 deletions
+3
View File
@@ -118,6 +118,9 @@ public sealed class Plugin : IDalamudPlugin
Interface.UiBuilder.Draw += Draw;
Interface.LanguageChanged += LanguageChanged;
if (Config.ShowEmotes)
Task.Run(EmoteCache.LoadData);
#if !DEBUG
// Avoid 300ms hitch when sending first message by preloading the
// auto-translate cache. Don't do this in debug because it makes