Skip to content

Commit

Permalink
Fix unusuability after deleting files in split view
Browse files Browse the repository at this point in the history
Update _mainWindowStatus before switchEditViewTo for fixing hidden document-view after deleting files in both views from outside.

Fix notepad-plus-plus#15922, close notepad-plus-plus#15923
  • Loading branch information
xomx authored and donho committed Dec 9, 2024
1 parent af9af11 commit d6169c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerEditor/src/Notepad_plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<UCHAR>(whichOne == SUB_VIEW ? WindowSubActive : WindowMainActive);
_mainWindowStatus &= static_cast<UCHAR>(~viewToDisable);
switchEditViewTo(otherFromView(whichOne));
}

bool Notepad_plus::loadStyles()
Expand Down

0 comments on commit d6169c4

Please sign in to comment.