Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 0f813d8

Browse files
authored
Merge pull request #602 from adobe/ingo/linux-native-menus
Added support of Native Menus in Linux
2 parents ad274cf + 0ecc5c8 commit 0f813d8

File tree

5 files changed

+305
-25
lines changed

5 files changed

+305
-25
lines changed

appshell/appshell_extensions.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,9 @@ class ProcessMessageDelegate : public ClientHandler::ProcessMessageDelegate {
606606
bool enabled = argList->GetBool(2);
607607
bool checked = argList->GetBool(3);
608608
error = NativeMenuModel::getInstance(getMenuParent(browser)).setMenuItemState(command, enabled, checked);
609+
if (error == NO_ERROR) {
610+
error = SetMenuItemState(browser, command, enabled, checked);
611+
}
609612
}
610613
} else if (message_name == "SetMenuTitle") {
611614
// Parameters:

0 commit comments

Comments
 (0)