Sidebar can be hidden/shown from menu "View/Collapse sidebar"

This commit is contained in:
YuSanka 2020-03-16 12:49:39 +01:00
parent 6bf56d5cb4
commit ea0cb4d761
3 changed files with 33 additions and 0 deletions

View file

@ -757,6 +757,9 @@ void MainFrame::init_menubar()
append_menu_check_item(viewMenu, wxID_ANY, _(L("Show &labels")) + sep + "E", _(L("Show object/instance labels in 3D scene")),
[this](wxCommandEvent&) { m_plater->show_view3D_labels(!m_plater->are_view3D_labels_shown()); }, this,
[this]() { return m_plater->is_view3D_shown(); }, [this]() { return m_plater->are_view3D_labels_shown(); }, this);
append_menu_check_item(viewMenu, wxID_ANY, _(L("&Collapse sidebar")), _(L("Collapse sidebar")),
[this](wxCommandEvent&) { m_plater->collapse_sidebur(!m_plater->is_sidebar_collapsed()); }, this,
[this]() { return true; }, [this]() { return m_plater->is_sidebar_collapsed(); }, this);
}
// Help menu