From d6169c418e14afb01c7f03f964ef44bfdbe1585a Mon Sep 17 00:00:00 2001 From: xomx Date: Sun, 8 Dec 2024 17:21:45 +0100 Subject: [PATCH] Fix unusuability after deleting files in split view Update _mainWindowStatus before switchEditViewTo for fixing hidden document-view after deleting files in both views from outside. Fix #15922, close #15923 --- PowerEditor/src/Notepad_plus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 2d8c60b7f..6d8bb8c1e 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -4607,9 +4607,9 @@ void Notepad_plus::hideView(int whichOne) // resize the main window ::SendMessage(_pPublicInterface->getHSelf(), WM_SIZE, 0, 0); - switchEditViewTo(otherFromView(whichOne)); auto viewToDisable = static_cast(whichOne == SUB_VIEW ? WindowSubActive : WindowMainActive); _mainWindowStatus &= static_cast(~viewToDisable); + switchEditViewTo(otherFromView(whichOne)); } bool Notepad_plus::loadStyles()