mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +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
|
// Ensure types used in XAML are preserved for AOT compilation
|
||||||
TypePreservation.PreserveTypes();
|
TypePreservation.PreserveTypes();
|
||||||
|
|
||||||
// Initialize Logger
|
// Note: Logger is already initialized in Program.cs before App constructor
|
||||||
Logger.InitializeLogger("\\PowerDisplay\\Logs");
|
|
||||||
|
|
||||||
// Initialize PowerToys telemetry
|
// Initialize PowerToys telemetry
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user