From 126b889608db568f45a1a8d691e23dfa67931a8a Mon Sep 17 00:00:00 2001 From: 0x5BFA <62196528+0x5bfa@users.noreply.github.com> Date: Thu, 31 Oct 2024 19:53:20 +0900 Subject: [PATCH] Update MainWindow.xaml.cs --- src/Files.App/MainWindow.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Files.App/MainWindow.xaml.cs b/src/Files.App/MainWindow.xaml.cs index e80e55247649..40091b1142de 100644 --- a/src/Files.App/MainWindow.xaml.cs +++ b/src/Files.App/MainWindow.xaml.cs @@ -35,6 +35,9 @@ public MainWindow() AppWindow.TitleBar.ButtonPressedBackgroundColor = Colors.Transparent; AppWindow.TitleBar.ButtonHoverBackgroundColor = Colors.Transparent; AppWindow.SetIcon(AppLifecycleHelper.AppIconPath); + + if (AppLifecycleHelper.IsAutoHideTaskbarEnabled()) + Win32PInvoke.SetPropW(WindowHandle, "NonRudeHWND", new IntPtr(1)); } public void ShowSplashScreen()