Skip to content

Commit

Permalink
Window not rendering properly after restoring from closed to tray
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefNemec committed May 3, 2023
1 parent 653c110 commit ee15d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Playnite/Windows/WindowFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public static void RestoreWindow(this Window window)
// not render properly for some reason (will display just black).
// BUT we can't call it always otherwise it will bug out restore if atl-tabbing was
// used in the past for switching windows, see next comment...
if (window.WindowState == WindowState.Minimized)
if (window.WindowState == WindowState.Minimized || window.Visibility != Visibility.Visible)
{
window.Show();
}
Expand Down

0 comments on commit ee15d63

Please sign in to comment.