Remove redundant Logger initialization in App.xaml.cs

Logger initialization is now handled in Program.cs before the App constructor, so the duplicate initialization in App.xaml.cs has been removed. A clarifying comment was added to document this change and improve startup sequence clarity.
This commit is contained in:
Yu Leng
2025-12-11 11:04:41 +08:00
parent d3ebebc24c
commit 570cff4590

View File

@@ -45,8 +45,7 @@ namespace PowerDisplay
// Ensure types used in XAML are preserved for AOT compilation
TypePreservation.PreserveTypes();
// Initialize Logger
Logger.InitializeLogger("\\PowerDisplay\\Logs");
// Note: Logger is already initialized in Program.cs before App constructor
// Initialize PowerToys telemetry
try