projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22927c9
)
win: Update menu states when setting menu bar.
author
Cheng Zhao
<zcbenz@gmail.com>
Mon, 26 May 2014 01:18:19 +0000
(09:18 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Mon, 26 May 2014 01:18:19 +0000
(09:18 +0800)
atom/browser/native_window_win.cc
patch
|
blob
|
history
diff --git
a/atom/browser/native_window_win.cc
b/atom/browser/native_window_win.cc
index
2635101
..
d291682
100644
(file)
--- a/
atom/browser/native_window_win.cc
+++ b/
atom/browser/native_window_win.cc
@@
-415,6
+415,7
@@
void NativeWindowWin::OnMenuCommand(int position, HMENU menu) {
void NativeWindowWin::SetMenu(ui::MenuModel* menu_model) {
menu_.reset(new atom::Menu2(menu_model, true));
+ menu_->UpdateStates();
::SetMenu(GetNativeWindow(), menu_->GetNativeMenu());
RegisterAccelerators();