diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index d0bcb4c92..1f8416d1b 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -796,6 +796,8 @@ void Notepad_plus::doClose(BufferID id, int whichOne, bool doDeleteBackup) _pDocumentListPanel->closeItem(hiddenBufferID, whichOne); } + checkSyncState(); + // Notify plugins that current file is closed if (isBufRemoved) { @@ -2331,6 +2333,8 @@ bool Notepad_plus::loadSession(Session & session, bool isSnapshotMode, bool shou else if (canHideView(currentView())) hideView(currentView()); + checkSyncState(); + if (_pDocumentListPanel) _pDocumentListPanel->reload();