Fix statusbar not updating
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@229 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
c87f33fbea
commit
a979745f97
|
@ -7912,6 +7912,7 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask) {
|
|||
checkUnicodeMenuItems(buffer->getUnicodeMode());
|
||||
setUniModeText(buffer->getUnicodeMode());
|
||||
setDisplayFormat(buffer->getFormat());
|
||||
enableConvertMenuItems(buffer->getFormat());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7934,6 +7935,10 @@ void Notepad_plus::notifyBufferActivated(BufferID bufid, int view) {
|
|||
dynamicCheckMenuAndTB();
|
||||
setLangStatus(buf->getLangType());
|
||||
updateStatusBar();
|
||||
checkUnicodeMenuItems(buf->getUnicodeMode());
|
||||
setUniModeText(buf->getUnicodeMode());
|
||||
setDisplayFormat(buf->getFormat());
|
||||
enableConvertMenuItems(buf->getFormat());
|
||||
char dir[MAX_PATH];
|
||||
strcpy(dir, buf->getFilePath());
|
||||
PathRemoveFileSpec(dir);
|
||||
|
|
Loading…
Reference in New Issue