diff --git a/src/app_layout.cpp b/src/app_layout.cpp index 6092f0b..fa1d318 100644 --- a/src/app_layout.cpp +++ b/src/app_layout.cpp @@ -791,7 +791,7 @@ void App::init_menu_tools() floating_presets = fpanel->m_container->add_child_ref(); floating_presets->SetHeightP(100); //floating_presets->SetFlexGrow(1); - floating_presets->find("toolbar")->destroy(); + //floating_presets->find("toolbar")->destroy(); floating_presets->on_brush_changed = [this](Node* target, std::shared_ptr& b) { auto c = Canvas::I->m_current_brush->m_tip_color; *Canvas::I->m_current_brush = *b; @@ -1577,7 +1577,7 @@ void App::ui_restore() { auto floating_presets = f->m_container->add_child(); floating_presets->SetHeightP(100); - floating_presets->find("toolbar")->destroy(); + //floating_presets->find("toolbar")->destroy(); floating_presets->on_brush_changed = [this](Node* target, std::shared_ptr& b) { auto c = Canvas::I->m_current_brush->m_tip_color; *Canvas::I->m_current_brush = *b; @@ -1654,7 +1654,7 @@ void App::ui_restore() { auto floating_presets = f->m_container->add_child(); floating_presets->SetHeightP(100); - floating_presets->find("toolbar")->destroy(); + //floating_presets->find("toolbar")->destroy(); floating_presets->on_brush_changed = [this](Node* target, std::shared_ptr& b) { auto c = Canvas::I->m_current_brush->m_tip_color; *Canvas::I->m_current_brush = *b;