Updated settings menu according to the view mode

+ Created new class PrusaMenu, derived from wxMenu and contains pointers to the separators.
This commit is contained in:
YuSanka 2019-01-25 13:16:32 +01:00
parent 9f734a073f
commit 5a7061a7fb
6 changed files with 99 additions and 35 deletions
src/slic3r/GUI

View file

@ -94,6 +94,16 @@ wxFrame(NULL, wxID_ANY, SLIC3R_BUILD, wxDefaultPosition, wxDefaultSize, wxDEFAUL
// m_plater->print = undef;
_3DScene::remove_all_canvases();
// Slic3r::GUI::deregister_on_request_update_callback();
// destroy and set to null tabs and a platter
// to avoid any manipulations with them from App->wxEVT_IDLE after of the mainframe closing
wxGetApp().clear_tabs_list();
if (wxGetApp().plater_) {
// before creating a new plater let's delete old one
wxGetApp().plater_->Destroy();
wxGetApp().plater_ = nullptr;
}
// propagate event
event.Skip();
});