mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Context menu from the object on the 3Dscene
This commit is contained in:
parent
0eba32bb0c
commit
c80267bb29
6 changed files with 212 additions and 93 deletions
|
@ -24,13 +24,11 @@ wxMenuItem* append_menu_item(wxMenu* menu, int id, const wxString& string, const
|
|||
wxMenuItem* item = menu->Append(id, string, description);
|
||||
item->SetBitmap(icon);
|
||||
|
||||
if (event_handler != nullptr && event_handler != menu)
|
||||
#ifdef __WXMSW__
|
||||
if (event_handler != nullptr && event_handler != menu)
|
||||
event_handler->Bind(wxEVT_MENU, cb, id);
|
||||
#else
|
||||
menu->Bind(wxEVT_MENU, cb, id);
|
||||
#endif
|
||||
else
|
||||
#endif // __WXMSW__
|
||||
menu->Bind(wxEVT_MENU, cb, id);
|
||||
|
||||
return item;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue