hide "strategy" combo box

Only "auto" will be used
This commit is contained in:
tamasmeszaros 2023-08-09 17:57:04 +02:00
parent eae9a76249
commit e5a067f9ae
2 changed files with 1 additions and 11 deletions

View File

@ -102,16 +102,6 @@ void ArrangeSettingsDialogImgui::render(float pos_x, float pos_y)
settings.geom_handling));
}
if (m_imgui->combo(_L("Strategy"),
{_u8L("Automatic"), _u8L("Pull to center")},
settings.arr_strategy)) {
if (settings.arr_strategy >= 0 &&
settings.arr_strategy < ArrangeSettingsView::asCount)
m_db->set_arrange_strategy(
static_cast<ArrangeSettingsView::ArrangeStrategy>(
settings.arr_strategy));
}
ImGui::Separator();
if (m_imgui->button(_L("Reset defaults"))) {

View File

@ -45,7 +45,7 @@ public:
XLPivots get_xl_alignment() const override { return m_db->get_xl_alignment(); }
GeometryHandling get_geometry_handling() const override { return m_db->get_geometry_handling(); }
ArrangeStrategy get_arrange_strategy() const override { return m_db->get_arrange_strategy(); }
ArrangeStrategy get_arrange_strategy() const override { return arr2::ArrangeSettingsView::asAuto; }
};
}} // namespace Slic3r::GUI