Skip to content

Commit

Permalink
fix pointless call of updateMenuItemByCommand on getPluginCommandList…
Browse files Browse the repository at this point in the history
… when reloadLang
  • Loading branch information
KnIfER committed Apr 13, 2021
1 parent 4a29712 commit 3c6ee97
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PowerEditor/src/WinControls/shortcut/shortcut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,11 +625,11 @@ void Accelerator::updateFullMenu()
updateMenuItemByCommand(ucommands[i]);
}

vector<PluginCmdShortcut> pcommands = nppParam.getPluginCommandList();
for (size_t i = 0; i < pcommands.size(); ++i)
{
updateMenuItemByCommand(pcommands[i]);
}
//vector<PluginCmdShortcut> pcommands = nppParam.getPluginCommandList();
//for (size_t i = 0; i < pcommands.size(); ++i)
//{
// updateMenuItemByCommand(pcommands[i]);
//}

::DrawMenuBar(_hMenuParent);
}
Expand Down

0 comments on commit 3c6ee97

Please sign in to comment.