FIX: modify the text

Change-Id: If9d6d629288f9016b5d8abfaff5ee44c99d90e30
This commit is contained in:
zhimin.zeng 2022-09-09 09:38:26 +08:00 committed by Lane.Wei
parent 589e30e095
commit 4c063a8a32
3 changed files with 6 additions and 6 deletions

View file

@ -218,7 +218,7 @@ CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(BrimType)
// using 0,1,2 to compatible with old files
static const t_config_enum_values s_keys_map_TimelapseType = {
{"0", tlClose},
{"0", tlNone},
{"1", tlSmooth},
{"2", tlTraditional}
};
@ -2055,11 +2055,11 @@ void PrintConfigDef::init_fff_params()
def->enum_values.emplace_back("0");
def->enum_values.emplace_back("1");
def->enum_values.emplace_back("2");
def->enum_labels.emplace_back(L("Close"));
def->enum_labels.emplace_back(L("None"));
def->enum_labels.emplace_back(L("Smooth"));
def->enum_labels.emplace_back(L("Traditional"));
def->mode = comSimple;
def->set_default_value(new ConfigOptionEnum<TimelapseType>(tlClose));
def->set_default_value(new ConfigOptionEnum<TimelapseType>(tlNone));
def = this->add("standby_temperature_delta", coInt);
def->label = L("Temperature variation");

View file

@ -135,7 +135,7 @@ enum BrimType {
};
enum TimelapseType {
tlClose,
tlNone,
tlSmooth,
tlTraditional
};

View file

@ -1382,7 +1382,7 @@ void Tab::on_value_change(const std::string& opt_key, const boost::any& value)
_L("Warning"), wxICON_WARNING | wxYES | wxNO);
if (dlg.ShowModal() == wxID_YES) {
DynamicPrintConfig new_conf = *m_config;
new_conf.set_key_value("timelapse_type", new ConfigOptionEnum<TimelapseType>(TimelapseType::tlClose));
new_conf.set_key_value("timelapse_type", new ConfigOptionEnum<TimelapseType>(TimelapseType::tlNone));
m_config_manipulation.apply(m_config, &new_conf);
wxGetApp().plater()->update();
}
@ -1409,7 +1409,7 @@ void Tab::on_value_change(const std::string& opt_key, const boost::any& value)
}
else {
DynamicPrintConfig new_conf = *m_config;
new_conf.set_key_value("timelapse_type", new ConfigOptionEnum<TimelapseType>(TimelapseType::tlClose));
new_conf.set_key_value("timelapse_type", new ConfigOptionEnum<TimelapseType>(TimelapseType::tlNone));
m_config_manipulation.apply(m_config, &new_conf);
}
} else {