From 3c6ee97a3d8910293c6fdfae5aefb10dabe082d2 Mon Sep 17 00:00:00 2001 From: KnIfER <1445952621@qq.com> Date: Tue, 13 Apr 2021 17:55:43 +0900 Subject: [PATCH] fix pointless call of updateMenuItemByCommand on getPluginCommandList when reloadLang --- PowerEditor/src/WinControls/shortcut/shortcut.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PowerEditor/src/WinControls/shortcut/shortcut.cpp b/PowerEditor/src/WinControls/shortcut/shortcut.cpp index 7edceb75..b0f41db5 100644 --- a/PowerEditor/src/WinControls/shortcut/shortcut.cpp +++ b/PowerEditor/src/WinControls/shortcut/shortcut.cpp @@ -625,11 +625,11 @@ void Accelerator::updateFullMenu() updateMenuItemByCommand(ucommands[i]); } - vector pcommands = nppParam.getPluginCommandList(); - for (size_t i = 0; i < pcommands.size(); ++i) - { - updateMenuItemByCommand(pcommands[i]); - } + //vector pcommands = nppParam.getPluginCommandList(); + //for (size_t i = 0; i < pcommands.size(); ++i) + //{ + // updateMenuItemByCommand(pcommands[i]); + //} ::DrawMenuBar(_hMenuParent); }