mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fix of #4428
Don't update a visibility of the collapse_toolbar: if sidebar is collapsed and "show_collapse_button" doesn't have "true" value + Fixed typos in the Preferences.cpp
This commit is contained in:
parent
f5c7034f47
commit
990bfc0d76
2 changed files with 4 additions and 7 deletions
|
@ -2087,9 +2087,6 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
|
|||
// collapse sidebar according to saved value
|
||||
bool is_collapsed = wxGetApp().app_config->get("collapsed_sidebar") == "1";
|
||||
sidebar->collapse(is_collapsed);
|
||||
// Update an enable of the collapse_toolbar: if sidebar is collapsed, then collapse_toolbar should be visible
|
||||
if (is_collapsed)
|
||||
wxGetApp().app_config->set("show_collapse_button", "1");
|
||||
}
|
||||
|
||||
Plater::priv::~priv()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue