commit b7e1152aec02d4601f7d0c22c5241f1f6c6a5c93 parent 1c08cf687573952da0b87ef72c9f94cbf9fe2cb3 Author: falkTX <[email protected]> Date: Fri, 8 Jan 2016 06:19:58 +0000 Hide some menu actions when running as plugin Diffstat:
M | src/UI/guimain.cpp | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/UI/guimain.cpp b/src/UI/guimain.cpp @@ -197,6 +197,10 @@ ui_handle_t GUI::createUi(Fl_Osc_Interface *osc, void *exit) { if (long long winId = atoll(embedId)) { + // running embed as plugin + MasterUI::menu_mastermenu[11].hide(); // file -> nio settings + MasterUI::menu_mastermenu[13].hide(); // file -> exit + MasterUI::menu_mastermenu[26].hide(); // misc -> switch interface mode fl_embed(ui->masterwindow, winId); ui->masterwindow->show(); }