mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-21 08:54:50 +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()
|
internal void BeginHide()
|
||||||
{
|
{
|
||||||
UnloadPlugin();
|
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();
|
Hide();
|
||||||
|
|
||||||
ProcessHelper.PerformAggressiveGC();
|
ProcessHelper.PerformAggressiveGC();
|
||||||
|
Reference in New Issue
Block a user