fix use of undeclared identifier NSEventMaskLeftMouseDown

This commit is contained in:
zy 2022-11-25 19:55:22 +08:00
parent 30834f7b4d
commit a248a96ba7

View file

@ -377,7 +377,9 @@ bool wxTaskBarIconCustomStatusItemImpl::SetIcon(const wxBitmapBundle& icon, cons
[m_target setImplementation:this];
[[m_statusItem button] setTarget:m_target];
[[m_statusItem button] setAction:@selector(clickedAction:)];
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12
[[m_statusItem button] sendActionOn: NSEventMaskLeftMouseDown | NSEventMaskRightMouseDown];
#endif
}
m_icon = IconFromBundle(icon);