From 029cb09893242ccab402c7b7f3f5265508cafe1b Mon Sep 17 00:00:00 2001 From: Rajendra Singh Date: Sat, 10 Sep 2016 14:34:30 +0530 Subject: [PATCH] Fix Folder as Workspace toolbar icon inconsist behaviour Fix Folder as Workspace toolbar button inconsist state while closing Folder as Workspace windows directely (by clicking X button) Fixes #2249, closes #2263 --- PowerEditor/src/NppCommands.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index a12271787..093507db9 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -111,6 +111,8 @@ void Notepad_plus::command(int id) if (_pFileBrowser->isClosed()) { _pFileBrowser->display(); + checkMenuItem(IDM_VIEW_FILEBROWSER, true); + _toolBar.setCheck(IDM_VIEW_FILEBROWSER, true); _pFileBrowser->setClosed(false); } } @@ -2521,7 +2523,7 @@ void Notepad_plus::command(int id) { if (_nativeLangSpeaker.getLangEncoding() == NPP_CP_BIG5) { - char *authorName = "«J¤µ§^"; + char *authorName = "«J¤µ§^"; HWND hItem = ::GetDlgItem(_aboutDlg.getHSelf(), IDC_AUTHOR_NAME); WcharMbcsConvertor *wmc = WcharMbcsConvertor::getInstance();