mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-14 12:19:08 +00:00
Fix error when previous preview window is closed in Max mode
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user