mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+fix: trigger reset file changed on disc flag
This commit is contained in:
parent
e50e6057ea
commit
f73017968c
@ -626,6 +626,7 @@ void SetSavePoint()
|
||||
SciCall_SetSavePoint();
|
||||
}
|
||||
s_DocNeedSaving = false;
|
||||
ResetEvent(s_hEventFileChangedExt);
|
||||
UpdateToolbar();
|
||||
UpdateTitleBar(Globals.hwndMain);
|
||||
}
|
||||
@ -9781,10 +9782,6 @@ bool FileIO(bool fLoad, LPWSTR pszFileName, EditFileIOStatus *status,
|
||||
|
||||
s_bFileReadOnly = IsReadOnly(GetFileAttributes(pszFileName));
|
||||
|
||||
if (fSuccess) {
|
||||
ResetEvent(s_hEventFileChangedExt);
|
||||
}
|
||||
|
||||
EndWaitCursor();
|
||||
|
||||
return(fSuccess);
|
||||
@ -9908,6 +9905,7 @@ bool FileLoad(LPCWSTR lpszFile, bool bDontSave, bool bNew, bool bReload,
|
||||
if (SciCall_GetZoom() != 100) {
|
||||
ShowZoomCallTip();
|
||||
}
|
||||
ResetEvent(s_hEventFileChangedExt);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -10117,6 +10115,10 @@ bool FileLoad(LPCWSTR lpszFile, bool bDontSave, bool bNew, bool bReload,
|
||||
Flags.bHugeFileLoadState = false; // reset
|
||||
}
|
||||
|
||||
if (fSuccess) {
|
||||
ResetEvent(s_hEventFileChangedExt);
|
||||
}
|
||||
|
||||
UpdateTitleBar(Globals.hwndMain);
|
||||
UpdateToolbar();
|
||||
UpdateMarginWidth(true);
|
||||
@ -10353,6 +10355,7 @@ bool FileSave(bool bSaveAlways, bool bAsk, bool bSaveAs, bool bSaveCopy, bool bP
|
||||
}
|
||||
Globals.pFileMRU->pszBookMarks[idx] = StrDup(wchBookMarks);
|
||||
}
|
||||
ResetEvent(s_hEventFileChangedExt);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -11417,7 +11420,6 @@ void InstallFileWatching(const bool bInstall) {
|
||||
if (bPrevReadOnlyAttrib && !s_bFileReadOnly) {
|
||||
SendWMCommand(Globals.hwndMain, IDM_FILE_READONLY); // try to reset
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
UpdateTitleBar(Globals.hwndMain);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user