Fix error when previous preview window is closed in Max mode

This commit is contained in:
Paddy Xu
2017-05-30 22:08:33 +03:00
parent 43e67356f2
commit 4dede66da9

View File

@@ -156,6 +156,11 @@ namespace QuickLook
internal void BeginHide()
{
UnloadPlugin();
// if the this window is hidden in Max state, new show() will results in failure:
// "Cannot show Window when ShowActivated is false and WindowState is set to Maximized"
WindowState = WindowState.Normal;
Hide();
ProcessHelper.PerformAggressiveGC();