File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11// Copyright (c) 2024 Files Community
22// Licensed under the MIT License. See the LICENSE.
33
4- using Files . App . UserControls . TabBar ;
54using Microsoft . UI ;
65using Microsoft . UI . Windowing ;
7- using Microsoft . UI . Xaml ;
86using Microsoft . UI . Xaml . Controls ;
97using Microsoft . UI . Xaml . Media . Animation ;
108using Microsoft . UI . Xaml . Navigation ;
11- using System . IO ;
12- using Windows . ApplicationModel ;
139using Windows . ApplicationModel . Activation ;
1410using Windows . Storage ;
1511using WinUIEx ;
@@ -207,6 +203,9 @@ public async Task InitializeApplicationAsync(object activatedEventArgs)
207203 AppWindow . Show ( ) ;
208204 Activate ( ) ;
209205 }
206+
207+ if ( Windows . Win32 . PInvoke . IsIconic ( new ( WindowHandle ) ) )
208+ Instance . Restore ( ) ; // Restore window if minimized
210209 }
211210
212211 public Frame EnsureWindowIsInitialized ( )
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ AttachThreadInput
3939SetWindowPos
4040SetFocus
4141SetActiveWindow
42+ IsIconic
4243CopyFileFromApp
4344MoveFileFromApp
4445DeleteFileFromApp
You can’t perform that action at this time.
0 commit comments