mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 06:12:47 -06:00
CtrlLib: Fixed MacOS context menu
git-svn-id: svn://ultimatepp.org/upp/trunk@13601 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e2be6096d3
commit
cd8ebef36d
1 changed files with 4 additions and 1 deletions
|
|
@ -129,7 +129,10 @@ void CocoMenuBar::MenuAction(id sender)
|
|||
for(const Item& m : item)
|
||||
if(m.nsitem == sender) {
|
||||
ResetCocoaMouse();
|
||||
PostCallback(m.cb);
|
||||
if(GetParent()) // If not context menu use PostCallback to avoid visual glitches
|
||||
PostCallback(m.cb);
|
||||
else
|
||||
m.cb();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue