Removed the "Quick Slice" menu items from the main menu,

a little bit of code cleaning / refactoring.
This commit is contained in:
bubnikv 2018-12-06 14:47:53 +01:00
parent edc306db45
commit 79986188a7
7 changed files with 8 additions and 37 deletions

View file

@ -123,8 +123,8 @@ bool GUI_App::OnInit()
// application frame
std::cerr << "Creating main frame..." << std::endl;
// wxImage::FindHandlerType(wxBITMAP_TYPE_PNG) ||
wxImage::AddHandler(new wxPNGHandler());
if (wxImage::FindHandler(wxBITMAP_TYPE_PNG) == nullptr)
wxImage::AddHandler(new wxPNGHandler());
mainframe = new MainFrame(no_plater, false);
sidebar().obj_list()->init_objects(); // propagate model objects to object list
update_mode();