Skip to content

Commit

Permalink
imp - Language resetting on shutdown refreshes splash
Browse files Browse the repository at this point in the history
---

When we're resetting the language as soon as we request shutdown, we should use SplashOut() functions to refresh the splash to avoid display glitches.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 29, 2024
1 parent bc91028 commit 209f264
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/Nitrocid/Kernel/Starting/KernelInitializers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,10 @@ internal static void ResetEverything()
DebugWriter.WriteDebug(DebugLevel.I, "Remote debugger stopped");

// Reset languages
SplashManager.BeginSplashOut(context);
LanguageManager.SetLangDry(LanguageManager.CurrentLanguage);
LanguageManager.currentUserLanguage = LanguageManager.Languages[LanguageManager.CurrentLanguage];
SplashManager.EndSplashOut(context);

// Save extension handlers
ExtensionHandlerTools.SaveAllHandlers();
Expand Down

0 comments on commit 209f264

Please sign in to comment.