Skip to content

Commit 71ab7a6

Browse files
committed
Fix log message & Improve code comments
1 parent 4df9c04 commit 71ab7a6

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ await API.StopwatchLogInfoAsync(ClassName, "Startup cost", async () =>
154154
Ioc.Default.GetRequiredService<Portable>().PreStartCleanUpAfterPortabilityUpdate();
155155

156156
API.LogInfo(ClassName, "Begin Flow Launcher startup ----------------------------------------------------");
157-
API.LogInfo(ClassName, "Runtime info:{ErrorReporting.RuntimeInfo()}");
157+
API.LogInfo(ClassName, $"Runtime info:{ErrorReporting.RuntimeInfo()}");
158158

159159
RegisterAppDomainExceptions();
160160
RegisterDispatcherUnhandledException();
@@ -174,19 +174,16 @@ await API.StopwatchLogInfoAsync(ClassName, "Startup cost", async () =>
174174
await PluginManager.InitializePluginsAsync();
175175

176176
// Change language after all plugins are initialized because we need to update plugin title based on their api
177-
// TODO: Clean InternationalizationManager.Instance and InternationalizationManager.Instance.GetTranslation in future
178177
await Ioc.Default.GetRequiredService<Internationalization>().InitializeLanguageAsync();
179178

180179
await imageLoadertask;
181180

182181
_mainWindow = new MainWindow();
183182

184-
API.LogInfo(ClassName, "Dependencies Info:{ErrorReporting.DependenciesInfo()}");
185-
186183
Current.MainWindow = _mainWindow;
187184
Current.MainWindow.Title = Constant.FlowLauncher;
188185

189-
// main windows needs initialized before theme change because of blur settings
186+
// Main windows needs initialized before theme change because of blur settings
190187
Ioc.Default.GetRequiredService<Theme>().ChangeTheme();
191188

192189
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
@@ -270,7 +267,7 @@ private void RegisterExitEvents()
270267
}
271268

272269
/// <summary>
273-
/// let exception throw as normal is better for Debug
270+
/// Let exception throw as normal is better for Debug
274271
/// </summary>
275272
[Conditional("RELEASE")]
276273
private void RegisterDispatcherUnhandledException()
@@ -279,7 +276,7 @@ private void RegisterDispatcherUnhandledException()
279276
}
280277

281278
/// <summary>
282-
/// let exception throw as normal is better for Debug
279+
/// Let exception throw as normal is better for Debug
283280
/// </summary>
284281
[Conditional("RELEASE")]
285282
private static void RegisterAppDomainExceptions()
@@ -288,7 +285,7 @@ private static void RegisterAppDomainExceptions()
288285
}
289286

290287
/// <summary>
291-
/// let exception throw as normal is better for Debug
288+
/// Let exception throw as normal is better for Debug
292289
/// </summary>
293290
[Conditional("RELEASE")]
294291
private static void RegisterTaskSchedulerUnhandledException()

0 commit comments

Comments
 (0)