Browse Source

[BUG_FIXED] Fix the bug of dynamic menu format.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@76 f5eea248-9336-0410-98b8-ebc06183d4e3
pull/343/head^2
donho 17 years ago
parent
commit
011f2fcbc6
  1. 16
      PowerEditor/src/Notepad_plus.cpp

16
PowerEditor/src/Notepad_plus.cpp

@ -4068,7 +4068,6 @@ bool Notepad_plus::fileClose()
scnN.nmhdr.idFrom = 0;
_pluginsManager.notify(&scnN);
int res;
bool isDirty = _pEditView->isCurrentDocDirty();
@ -4115,9 +4114,10 @@ bool Notepad_plus::fileClose()
//updateStatusBar();
//dynamicCheckMenuAndTB();
setLangStatus(_pEditView->getCurrentDocType());
checkDocState();
//setLangStatus(_pEditView->getCurrentDocType());
//checkDocState();
_linkTriggered = true;
::SendMessage(_hSelf, NPPM_INTERNAL_DOCSWITCHIN, 0, 0);
// Notify plugins that current file is closed
scnN.nmhdr.code = NPPN_FILECLOSED;
@ -4433,12 +4433,12 @@ int Notepad_plus::switchEditViewTo(int gid)
_pEditView->beSwitched();
_pEditView->getFocus();
checkDocState();
//checkDocState();
setTitleWith(_pEditView->getCurrentTitle());
setLangStatus(_pEditView->getCurrentDocType());
updateStatusBar();
dynamicCheckMenuAndTB();
//printInt(getCurrentView());
//setLangStatus(_pEditView->getCurrentDocType());
//updateStatusBar();
//dynamicCheckMenuAndTB();
::SendMessage(_hSelf, NPPM_INTERNAL_DOCSWITCHIN, 0, 0);
return oldView;
}

Loading…
Cancel
Save