Disable couple of File menu items when it's needed.i

Fixes #2620, Closes #2858
This commit is contained in:
redmanmale 2017-01-31 22:20:02 +03:00 committed by Don Ho
parent 9fa1637605
commit 1caa457aae

View File

@ -1933,6 +1933,9 @@ void Notepad_plus::checkDocState()
enableCommand(IDM_FILE_DELETE, isFileExisting, MENU);
enableCommand(IDM_FILE_RENAME, isFileExisting, MENU);
enableCommand(IDM_FILE_OPEN_CMD, isFileExisting, MENU);
enableCommand(IDM_FILE_OPEN_FOLDER, isFileExisting, MENU);
enableCommand(IDM_FILE_RELOAD, isFileExisting, MENU);
enableConvertMenuItems(curBuf->getEolFormat());
checkUnicodeMenuItems();