Fix backup not fully disabled issue

Fixes #4663, close #4738
This commit is contained in:
Pavel Nedev 2018-08-03 11:56:20 +03:00 committed by Don HO
parent 2439a4eec0
commit 4969f377ad

View File

@ -3541,8 +3541,11 @@ int Notepad_plus::switchEditViewTo(int gid)
_pDocMap->initWrapMap();
}
// Before switching off, synchronize backup file
MainFileManager->backupCurrentBuffer();
if (NppParameters::getInstance()->getNppGUI().isSnapshotMode())
{
// Before switching off, synchronize backup file
MainFileManager->backupCurrentBuffer();
}
notifyBufferActivated(_pEditView->getCurrentBufferID(), currentView());
return oldView;