Skip to content

Commit 49419a1

Browse files
committed
Fix: Fixed an issue where resuming from background didn't bring Files to the foreground (#16050)
1 parent 64bbd00 commit 49419a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/Files.App/MainWindow.xaml.cs

+3
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ public async Task InitializeApplicationAsync(object activatedEventArgs)
183183
// When resuming the cached instance
184184
AppWindow.Show();
185185
Activate();
186+
187+
// Bring to foreground (#14730) in case Activate() doesn't
188+
Win32Helper.BringToForegroundEx(new(WindowHandle));
186189
}
187190

188191
if (Windows.Win32.PInvoke.IsIconic(new(WindowHandle)) &&

0 commit comments

Comments
 (0)