mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 14:24:58 +02:00
Fix possible empty snapshot session on Windows reboot/shutdown
Save snapshot session immediately when needed (without incuring delay by using ::PostMessage). Fix #7839 and latest user reported problems in #6133. Close #9427
This commit is contained in:
parent
3bf17ec697
commit
ce0012ab5c
@ -2344,5 +2344,5 @@ void Notepad_plus::saveSession(const Session & session)
|
|||||||
|
|
||||||
void Notepad_plus::saveCurrentSession()
|
void Notepad_plus::saveCurrentSession()
|
||||||
{
|
{
|
||||||
::PostMessage(_pPublicInterface->getHSelf(), NPPM_INTERNAL_SAVECURRENTSESSION, 0, 0);
|
::SendMessage(_pPublicInterface->getHSelf(), NPPM_INTERNAL_SAVECURRENTSESSION, 0, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user