From ee15d63efd55c7dd7f2649461381cf55fef26ce1 Mon Sep 17 00:00:00 2001 From: Josef Nemec Date: Wed, 3 May 2023 13:23:42 +0200 Subject: [PATCH] Window not rendering properly after restoring from closed to tray --- source/Playnite/Windows/WindowFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Playnite/Windows/WindowFactory.cs b/source/Playnite/Windows/WindowFactory.cs index 80b7a6cad..65c1de47e 100644 --- a/source/Playnite/Windows/WindowFactory.cs +++ b/source/Playnite/Windows/WindowFactory.cs @@ -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(); }