diff --git a/PathfinderAPI/BaseGameFixes/Performance/ThemeCaching.cs b/PathfinderAPI/BaseGameFixes/Performance/ThemeCaching.cs index 79eb403b..ed250b2e 100644 --- a/PathfinderAPI/BaseGameFixes/Performance/ThemeCaching.cs +++ b/PathfinderAPI/BaseGameFixes/Performance/ThemeCaching.cs @@ -132,7 +132,13 @@ internal static bool SwitchToLastCustomTheme(object osObject, OSTheme theme) if (theme == OSTheme.Custom) { // just dont question it - CachedThemes.BackingListHead?.Value?.ApplyTo((OS)osObject); + var lastTheme = CachedThemes.BackingListHead?.Value; + if (lastTheme != null) + { + if (!lastTheme.Loaded) + lastTheme.Load(true); + lastTheme.ApplyTo((OS)osObject); + } return false; }