Fix user created session modified in multiInst mode

ref:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12079#issuecomment-1763399514
pull/14237/head
Don Ho 1 year ago
parent 8b50f876c9
commit 8e43b0adba

@ -2467,7 +2467,7 @@ bool Notepad_plus::fileLoadSession(const TCHAR *fn)
const bool shouldLoadFileBrowser = true;
isAllSuccessful = loadSession(session2Load, isSnapshotMode, shouldLoadFileBrowser);
result = true;
if (isEmptyNpp && (nppGUI._multiInstSetting == multiInstOnSession || nppGUI._multiInstSetting == multiInst))
if (isEmptyNpp && nppGUI._multiInstSetting == multiInstOnSession)
nppParam.setLoadedSessionFilePath(sessionFileName);
}
}

Loading…
Cancel
Save