OSX: Disabling the placeholder menu over the docker icons.

This commit is contained in:
Vojtech Bubnik 2020-10-06 16:42:46 +02:00
parent 44565315bf
commit 89935751ac

View File

@ -54,6 +54,7 @@ class PrusaSlicerTaskBarIcon : public wxTaskBarIcon
{ {
public: public:
PrusaSlicerTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE) : wxTaskBarIcon(iconType) {} PrusaSlicerTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE) : wxTaskBarIcon(iconType) {}
#if 0
wxMenu *CreatePopupMenu() override { wxMenu *CreatePopupMenu() override {
wxMenu *menu = new wxMenu; wxMenu *menu = new wxMenu;
int id; int id;
@ -61,11 +62,13 @@ public:
menu->Bind(wxEVT_MENU, [this](wxCommandEvent &) { wxMessageBox("Test menu - PrusaSlicer"); }, id); menu->Bind(wxEVT_MENU, [this](wxCommandEvent &) { wxMessageBox("Test menu - PrusaSlicer"); }, id);
return menu; return menu;
} }
#endif
}; };
class GCodeViewerTaskBarIcon : public wxTaskBarIcon class GCodeViewerTaskBarIcon : public wxTaskBarIcon
{ {
public: public:
GCodeViewerTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE) : wxTaskBarIcon(iconType) {} GCodeViewerTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE) : wxTaskBarIcon(iconType) {}
#if 0
wxMenu *CreatePopupMenu() override { wxMenu *CreatePopupMenu() override {
wxMenu *menu = new wxMenu; wxMenu *menu = new wxMenu;
int id; int id;
@ -73,6 +76,7 @@ public:
menu->Bind(wxEVT_MENU, [this](wxCommandEvent &) { wxMessageBox("Test menu - GCode Viewer"); }, id); menu->Bind(wxEVT_MENU, [this](wxCommandEvent &) { wxMessageBox("Test menu - GCode Viewer"); }, id);
return menu; return menu;
} }
#endif
}; };
#endif // __APPLE__ #endif // __APPLE__