mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Fixed show_info_sizer according to selected mode.
+ fixed right panel layouts + deleted unused functions
This commit is contained in:
parent
5089c4e2e0
commit
b721f9431a
6 changed files with 17 additions and 43 deletions
|
@ -481,18 +481,16 @@ ConfigMenuIDs GUI_App::get_view_mode()
|
|||
// Update view mode according to selected menu
|
||||
void GUI_App::update_mode()
|
||||
{
|
||||
wxWindowUpdateLocker noUpdates(mainframe->m_plater);
|
||||
wxWindowUpdateLocker noUpdates(&sidebar());
|
||||
|
||||
ConfigMenuIDs mode = wxGetApp().get_view_mode();
|
||||
|
||||
obj_list()->get_sizer()->Show(mode == ConfigMenuModeExpert);
|
||||
sidebar().show_info_sizer(mode == ConfigMenuModeExpert);
|
||||
sidebar().set_mode_value(mode);
|
||||
sidebar().show_buttons(mode == ConfigMenuModeExpert);
|
||||
obj_manipul()->show_object_name(mode == ConfigMenuModeSimple);
|
||||
obj_list()->update_manipulation_sizer(mode == ConfigMenuModeSimple);
|
||||
obj_list()->update_selections();
|
||||
|
||||
sidebar().Layout();
|
||||
mainframe->m_plater->Layout();
|
||||
|
||||
ConfigOptionMode opt_mode = mode == ConfigMenuModeSimple ? comSimple :
|
||||
mode == ConfigMenuModeExpert ? comExpert : comAdvanced;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue