mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 03:07:56 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user