Fix Plugin Menu is not localized issue When no plugin installed
Fix #5577, close #5592
This commit is contained in:
parent
074a4bca93
commit
36230cb31c
@ -532,7 +532,7 @@ LRESULT Notepad_plus::init(HWND hwnd)
|
||||
::DrawMenuBar(hwnd);
|
||||
|
||||
|
||||
if (_pluginsManager.hasPlugins() && pluginsTrans != TEXT(""))
|
||||
if (pluginsTrans != TEXT(""))
|
||||
{
|
||||
::ModifyMenu(_mainMenuHandle, MENUINDEX_PLUGINS, MF_BYPOSITION, 0, pluginsTrans.c_str());
|
||||
}
|
||||
@ -5654,7 +5654,7 @@ bool Notepad_plus::reloadLang()
|
||||
|
||||
int indexWindow = ::GetMenuItemCount(_mainMenuHandle) - 3;
|
||||
|
||||
if (_pluginsManager.hasPlugins() && pluginsTrans != TEXT(""))
|
||||
if (pluginsTrans != TEXT(""))
|
||||
{
|
||||
::ModifyMenu(_mainMenuHandle, indexWindow - 1, MF_BYPOSITION, 0, pluginsTrans.c_str());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user