We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2ea468 + 43367b0 commit 44a52afCopy full SHA for 44a52af
src/api/menu/menu_win.cc
@@ -144,6 +144,7 @@ void Menu::Rebuild(const gfx::NativeMenu *parent_menu) {
144
if (is_menu_modified_) {
145
// Refresh menu before show.
146
menu_->Rebuild();
147
+ menu_->UpdateStates();
148
for (size_t index = 0; index < icon_bitmaps_.size(); ++index) {
149
::DeleteObject(icon_bitmaps_[index]);
150
}
src/browser/native_window_win.cc
@@ -589,8 +589,10 @@ bool NativeWindowWin::ExecuteWindowsCommand(int command_id) {
589
590
591
bool NativeWindowWin::ExecuteAppCommand(int command_id) {
592
- if (menu_)
+ if (menu_) {
593
menu_->menu_delegate_->ExecuteCommand(command_id);
594
+ menu_->menu_->UpdateStates();
595
+ }
596
597
return false;
598
0 commit comments