mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 13:54:54 +02:00
[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
This commit is contained in:
parent
c5b2193400
commit
011f2fcbc6
@ -4068,7 +4068,6 @@ bool Notepad_plus::fileClose()
|
|||||||
scnN.nmhdr.idFrom = 0;
|
scnN.nmhdr.idFrom = 0;
|
||||||
_pluginsManager.notify(&scnN);
|
_pluginsManager.notify(&scnN);
|
||||||
|
|
||||||
|
|
||||||
int res;
|
int res;
|
||||||
bool isDirty = _pEditView->isCurrentDocDirty();
|
bool isDirty = _pEditView->isCurrentDocDirty();
|
||||||
|
|
||||||
@ -4115,9 +4114,10 @@ bool Notepad_plus::fileClose()
|
|||||||
|
|
||||||
//updateStatusBar();
|
//updateStatusBar();
|
||||||
//dynamicCheckMenuAndTB();
|
//dynamicCheckMenuAndTB();
|
||||||
setLangStatus(_pEditView->getCurrentDocType());
|
//setLangStatus(_pEditView->getCurrentDocType());
|
||||||
checkDocState();
|
//checkDocState();
|
||||||
_linkTriggered = true;
|
_linkTriggered = true;
|
||||||
|
::SendMessage(_hSelf, NPPM_INTERNAL_DOCSWITCHIN, 0, 0);
|
||||||
|
|
||||||
// Notify plugins that current file is closed
|
// Notify plugins that current file is closed
|
||||||
scnN.nmhdr.code = NPPN_FILECLOSED;
|
scnN.nmhdr.code = NPPN_FILECLOSED;
|
||||||
@ -4433,12 +4433,12 @@ int Notepad_plus::switchEditViewTo(int gid)
|
|||||||
_pEditView->beSwitched();
|
_pEditView->beSwitched();
|
||||||
_pEditView->getFocus();
|
_pEditView->getFocus();
|
||||||
|
|
||||||
checkDocState();
|
//checkDocState();
|
||||||
setTitleWith(_pEditView->getCurrentTitle());
|
setTitleWith(_pEditView->getCurrentTitle());
|
||||||
setLangStatus(_pEditView->getCurrentDocType());
|
//setLangStatus(_pEditView->getCurrentDocType());
|
||||||
updateStatusBar();
|
//updateStatusBar();
|
||||||
dynamicCheckMenuAndTB();
|
//dynamicCheckMenuAndTB();
|
||||||
//printInt(getCurrentView());
|
::SendMessage(_hSelf, NPPM_INTERNAL_DOCSWITCHIN, 0, 0);
|
||||||
return oldView;
|
return oldView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user