Remove association check before enabling 'View Current File In' menu items

Fix #5903, close #6156
This commit is contained in:
Scott Sumner 2019-09-17 16:14:10 -04:00 committed by Don HO
parent 7216849723
commit f477c095aa
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -2005,10 +2005,10 @@ void Notepad_plus::checkDocState()
enableCommand(IDM_FILE_OPEN_DEFAULT_VIEWER, isAssoCommandExisting(curBuf->getFullPathName()), MENU); enableCommand(IDM_FILE_OPEN_DEFAULT_VIEWER, isAssoCommandExisting(curBuf->getFullPathName()), MENU);
enableCommand(IDM_VIEW_IN_FIREFOX, isAssoCommandExisting(curBuf->getFullPathName()), MENU); enableCommand(IDM_VIEW_IN_FIREFOX, isFileExisting, MENU);
enableCommand(IDM_VIEW_IN_CHROME, isAssoCommandExisting(curBuf->getFullPathName()), MENU); enableCommand(IDM_VIEW_IN_CHROME, isFileExisting, MENU);
enableCommand(IDM_VIEW_IN_IE, isAssoCommandExisting(curBuf->getFullPathName()), MENU); enableCommand(IDM_VIEW_IN_IE, isFileExisting, MENU);
enableCommand(IDM_VIEW_IN_EDGE, isAssoCommandExisting(curBuf->getFullPathName()), MENU); enableCommand(IDM_VIEW_IN_EDGE, isFileExisting, MENU);
enableConvertMenuItems(curBuf->getEolFormat()); enableConvertMenuItems(curBuf->getEolFormat());
checkUnicodeMenuItems(); checkUnicodeMenuItems();