From 62ec8ee50e1e1b817cd9cf9aab45a231df01ab06 Mon Sep 17 00:00:00 2001 From: "Shawn Yuan (from Dev Box)" Date: Fri, 6 Feb 2026 14:56:56 +0800 Subject: [PATCH] remove pdsplay --- .../PowerDisplay/PowerDisplayXAML/MainWindow.xaml.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/modules/powerdisplay/PowerDisplay/PowerDisplayXAML/MainWindow.xaml.cs b/src/modules/powerdisplay/PowerDisplay/PowerDisplayXAML/MainWindow.xaml.cs index 14396b8968..5a9c89fc2a 100644 --- a/src/modules/powerdisplay/PowerDisplay/PowerDisplayXAML/MainWindow.xaml.cs +++ b/src/modules/powerdisplay/PowerDisplay/PowerDisplayXAML/MainWindow.xaml.cs @@ -318,17 +318,7 @@ namespace PowerDisplay { // Window properties (IsResizable, IsMaximizable, IsMinimizable, IsTitleBarVisible) // are set in XAML. IsShownInSwitchers must be set programmatically due to WinUIEx limitations. - try - { - this.AppWindow.IsShownInSwitchers = false; - } - catch (NotImplementedException) - { - // WinUI will throw if explorer is not running, safely ignore - } - catch (Exception) - { - } + this.AppWindow.IsShownInSwitchers = false; // Set minimal initial window size - will be adjusted before showing // Using minimal height to prevent "large window shrinking" flicker