Fix the tab context menu reload command's state not synchronized

Fix #12579
This commit is contained in:
Don Ho 2022-11-28 19:08:26 +01:00
parent cffdf79a9b
commit de5f419314

View File

@ -581,7 +581,7 @@ BOOL Notepad_plus::notify(SCNotification *notification)
bool isFileExisting = PathFileExists(buf->getFullPathName()) != FALSE;
_tabPopupMenu.enableItem(IDM_FILE_DELETE, isFileExisting);
//_tabPopupMenu.enableItem(IDM_FILE_RENAME, isFileExisting);
_tabPopupMenu.enableItem(IDM_FILE_RELOAD, isFileExisting);
_tabPopupMenu.enableItem(IDM_FILE_OPEN_FOLDER, isFileExisting);
_tabPopupMenu.enableItem(IDM_FILE_OPEN_CMD, isFileExisting);