mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-24 19:32:18 +00:00
fix: Show Labels and Show Overhang toggles not being saved (#12218)
* fix: Show Labels and Show Overhang toggles not being saved * refactor: use get_bool and add comments
This commit is contained in:
@@ -4341,12 +4341,21 @@ struct Plater::priv
|
||||
bool is_assemble_view_show() const { return current_panel == assemble_view; }
|
||||
|
||||
bool are_view3D_labels_shown() const { return (current_panel == view3D) && view3D->get_canvas3d()->are_labels_shown(); }
|
||||
void show_view3D_labels(bool show) { if (current_panel == view3D) view3D->get_canvas3d()->show_labels(show); }
|
||||
void show_view3D_labels(bool show)
|
||||
{
|
||||
if (current_panel == view3D) {
|
||||
view3D->get_canvas3d()->show_labels(show);
|
||||
wxGetApp().app_config->set_bool("show_labels", show);
|
||||
}
|
||||
}
|
||||
|
||||
bool is_view3D_overhang_shown() const { return (current_panel == view3D) && view3D->get_canvas3d()->is_overhang_shown(); }
|
||||
void show_view3D_overhang(bool show)
|
||||
{
|
||||
if (current_panel == view3D) view3D->get_canvas3d()->show_overhang(show);
|
||||
if (current_panel == view3D) {
|
||||
view3D->get_canvas3d()->show_overhang(show);
|
||||
wxGetApp().app_config->set_bool("show_overhang", show);
|
||||
}
|
||||
}
|
||||
|
||||
void enable_sidebar(bool enabled);
|
||||
|
||||
Reference in New Issue
Block a user