Fix Plugin Menu is not localized issue When no plugin installed

Fix #5577, close #5592
This commit is contained in:
Rajendra Singh 2019-04-27 18:32:35 +05:30 committed by Don HO
parent 074a4bca93
commit 36230cb31c
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -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());
}