Collapse_toolbar: fixed draw items

+ Extended toolbar
This commit is contained in:
YuSanka
2020-04-23 21:00:00 +02:00
parent 7805778ab8
commit 58bbe6e0d2
2 changed files with 26 additions and 6 deletions

View File

@@ -373,6 +373,8 @@ bool GUI_App::on_init_inner()
if (wxImage::FindHandler(wxBITMAP_TYPE_PNG) == nullptr)
wxImage::AddHandler(new wxPNGHandler());
mainframe = new MainFrame();
mainframe->switch_to(true); // hide settings tabs after first Layout
sidebar().obj_list()->init_objects(); // propagate model objects to object list
// update_mode(); // !!! do that later
SetTopWindow(mainframe);
@@ -424,8 +426,6 @@ bool GUI_App::on_init_inner()
update_mode(); // update view mode after fix of the object_list size
mainframe->switch_to(true); // hide settings tabs after mode updating
m_initialized = true;
return true;
}