FIX: auto flush option dont work

Caused by setting wrong value in app config

jira:STUDIO-10399

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Id492e666f78c05a4563d4625b544623c6529aae8
(cherry picked from commit 0dbd5417a831f8af5347cee9ffb4f7857e2396f0)
This commit is contained in:
xun.zhang
2025-02-21 11:34:19 +08:00
committed by Noisyfox
parent af32339e1a
commit baf0588d43

View File

@@ -1245,8 +1245,9 @@ void PreferencesDialog::create_items()
//// CONTROL > Behaviour
g_sizer->Add(create_item_title(_L("Behaviour")), 1, wxEXPAND);
std::vector<wxString> FlushOptions = {_L("all"),_L("color change"),_L("disabled")};
auto item_auto_flush = create_item_combobox(_L("Auto Flush"),_L("Auto calculate flushing volumes when selected values changed"), "auto_calculate_flush", FlushOptions);
std::vector<wxString> FlushOptionLabels = {_L("All"),_L("Color change"),_L("Disabled")};
std::vector<std::string> FlushOptionValues = { "all","color change","disabled" };
auto item_auto_flush = create_item_combobox(_L("Auto Flush"), _L("Auto calculate flush volumes"), "auto_calculate_flush", FlushOptionLabels, FlushOptionValues);
g_sizer->Add(item_auto_flush);
auto item_auto_arrange = create_item_checkbox(_L("Auto arrange plate after cloning"), "", "auto_arrange");