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
This commit is contained in:
xomx 2024-12-08 17:21:45 +01:00 committed by Don Ho
parent af9af11aec
commit d6169c418e

View File

@ -4607,9 +4607,9 @@ void Notepad_plus::hideView(int whichOne)
// resize the main window // resize the main window
::SendMessage(_pPublicInterface->getHSelf(), WM_SIZE, 0, 0); ::SendMessage(_pPublicInterface->getHSelf(), WM_SIZE, 0, 0);
switchEditViewTo(otherFromView(whichOne));
auto viewToDisable = static_cast<UCHAR>(whichOne == SUB_VIEW ? WindowSubActive : WindowMainActive); auto viewToDisable = static_cast<UCHAR>(whichOne == SUB_VIEW ? WindowSubActive : WindowMainActive);
_mainWindowStatus &= static_cast<UCHAR>(~viewToDisable); _mainWindowStatus &= static_cast<UCHAR>(~viewToDisable);
switchEditViewTo(otherFromView(whichOne));
} }
bool Notepad_plus::loadStyles() bool Notepad_plus::loadStyles()