mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Initialize logger after data path initialization during portable clean up
This commit is contained in:
parent
81dcadb959
commit
56d6234f1c
1 changed files with 4 additions and 2 deletions
|
|
@ -183,8 +183,6 @@ namespace Flow.Launcher
|
|||
// So set to OnExplicitShutdown to prevent the application from shutting down before main window is created
|
||||
Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;
|
||||
|
||||
Log.SetLogLevel(_settings.LogLevel);
|
||||
|
||||
// Update dynamic resources base on settings
|
||||
Current.Resources["SettingWindowFont"] = new FontFamily(_settings.SettingWindowFont);
|
||||
Current.Resources["ContentControlThemeFontFamily"] = new FontFamily(_settings.SettingWindowFont);
|
||||
|
|
@ -197,8 +195,12 @@ namespace Flow.Launcher
|
|||
// Initialize language before portable clean up since it needs translations
|
||||
await _internationalization.InitializeLanguageAsync();
|
||||
|
||||
// Clean up after portability updates
|
||||
Ioc.Default.GetRequiredService<Portable>().PreStartCleanUpAfterPortabilityUpdate();
|
||||
|
||||
// Initialize logger after data path initialization during portable clean up
|
||||
Log.SetLogLevel(_settings.LogLevel);
|
||||
|
||||
API.LogInfo(ClassName, "Begin Flow Launcher startup ----------------------------------------------------");
|
||||
API.LogInfo(ClassName, $"Runtime info:{ErrorReporting.RuntimeInfo()}");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue