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 1
1
// Copyright (c) 2024 Files Community
2
2
// Licensed under the MIT License. See the LICENSE.
3
3
4
- using Files . App . UserControls . TabBar ;
5
4
using Microsoft . UI ;
6
5
using Microsoft . UI . Windowing ;
7
- using Microsoft . UI . Xaml ;
8
6
using Microsoft . UI . Xaml . Controls ;
9
7
using Microsoft . UI . Xaml . Media . Animation ;
10
8
using Microsoft . UI . Xaml . Navigation ;
11
- using System . IO ;
12
- using Windows . ApplicationModel ;
13
9
using Windows . ApplicationModel . Activation ;
14
10
using Windows . Storage ;
15
11
using WinUIEx ;
@@ -207,6 +203,9 @@ public async Task InitializeApplicationAsync(object activatedEventArgs)
207
203
AppWindow . Show ( ) ;
208
204
Activate ( ) ;
209
205
}
206
+
207
+ if ( Windows . Win32 . PInvoke . IsIconic ( new ( WindowHandle ) ) )
208
+ Instance . Restore ( ) ; // Restore window if minimized
210
209
}
211
210
212
211
public Frame EnsureWindowIsInitialized ( )
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ AttachThreadInput
39
39
SetWindowPos
40
40
SetFocus
41
41
SetActiveWindow
42
+ IsIconic
42
43
CopyFileFromApp
43
44
MoveFileFromApp
44
45
DeleteFileFromApp
You can’t perform that action at this time.
0 commit comments