Skip to content

Commit 2a27b1b

Browse files
authored
Merge pull request adobe#606 from adobe/saurabh95/linux-native-menus-master
Merging Native Menus from linux-1547 to master
2 parents 2598ea9 + a1e3253 commit 2a27b1b

File tree

5 files changed

+306
-22
lines changed

5 files changed

+306
-22
lines changed

appshell/appshell_extensions.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,9 @@ class ProcessMessageDelegate : public ClientHandler::ProcessMessageDelegate {
636636
bool enabled = argList->GetBool(2);
637637
bool checked = argList->GetBool(3);
638638
error = NativeMenuModel::getInstance(getMenuParent(browser)).setMenuItemState(command, enabled, checked);
639+
if (error == NO_ERROR) {
640+
error = SetMenuItemState(browser, command, enabled, checked);
641+
}
639642
}
640643
} else if (message_name == "SetMenuTitle") {
641644
// Parameters:

0 commit comments

Comments
 (0)