From 71ab7a69328a904b7cf4d97f5bd526f098e1ad22 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Thu, 24 Apr 2025 19:49:58 +0800 Subject: [PATCH] Fix log message & Improve code comments --- Flow.Launcher/App.xaml.cs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Flow.Launcher/App.xaml.cs b/Flow.Launcher/App.xaml.cs index e91676b7b..ac134fb5f 100644 --- a/Flow.Launcher/App.xaml.cs +++ b/Flow.Launcher/App.xaml.cs @@ -154,7 +154,7 @@ namespace Flow.Launcher Ioc.Default.GetRequiredService().PreStartCleanUpAfterPortabilityUpdate(); API.LogInfo(ClassName, "Begin Flow Launcher startup ----------------------------------------------------"); - API.LogInfo(ClassName, "Runtime info:{ErrorReporting.RuntimeInfo()}"); + API.LogInfo(ClassName, $"Runtime info:{ErrorReporting.RuntimeInfo()}"); RegisterAppDomainExceptions(); RegisterDispatcherUnhandledException(); @@ -174,19 +174,16 @@ namespace Flow.Launcher await PluginManager.InitializePluginsAsync(); // Change language after all plugins are initialized because we need to update plugin title based on their api - // TODO: Clean InternationalizationManager.Instance and InternationalizationManager.Instance.GetTranslation in future await Ioc.Default.GetRequiredService().InitializeLanguageAsync(); await imageLoadertask; _mainWindow = new MainWindow(); - API.LogInfo(ClassName, "Dependencies Info:{ErrorReporting.DependenciesInfo()}"); - Current.MainWindow = _mainWindow; Current.MainWindow.Title = Constant.FlowLauncher; - // main windows needs initialized before theme change because of blur settings + // Main windows needs initialized before theme change because of blur settings Ioc.Default.GetRequiredService().ChangeTheme(); Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); @@ -270,7 +267,7 @@ namespace Flow.Launcher } /// - /// let exception throw as normal is better for Debug + /// Let exception throw as normal is better for Debug /// [Conditional("RELEASE")] private void RegisterDispatcherUnhandledException() @@ -279,7 +276,7 @@ namespace Flow.Launcher } /// - /// let exception throw as normal is better for Debug + /// Let exception throw as normal is better for Debug /// [Conditional("RELEASE")] private static void RegisterAppDomainExceptions() @@ -288,7 +285,7 @@ namespace Flow.Launcher } /// - /// let exception throw as normal is better for Debug + /// Let exception throw as normal is better for Debug /// [Conditional("RELEASE")] private static void RegisterTaskSchedulerUnhandledException()