Enhance performance on exit with certain settings

Notepad++ is unnecessarily stalled in the situation, when closing a N++ with a large file opened within, but the session.xml file will not be updated at all due to the current Notepad++ settings chosen.

Fix #11219, close #11259
This commit is contained in:
xomx 2022-02-21 18:28:18 +01:00 committed by Don Ho
parent 58e404650b
commit 3de15f5512
1 changed files with 2 additions and 1 deletions

View File

@ -1975,7 +1975,8 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
}
Session currentSession;
getCurrentOpenedFiles(currentSession, true);
if (!((nppgui._multiInstSetting == monoInst) && !nppgui._rememberLastSession))
getCurrentOpenedFiles(currentSession, true);
if (nppgui._rememberLastSession)
{