mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 16:51:21 -06:00
Fix of SLADisplayOrientation updates
This commit is contained in:
parent
506cbcb4a7
commit
d6471e7b07
4 changed files with 10 additions and 4 deletions
|
|
@ -2394,8 +2394,10 @@ void PrintConfigDef::init_sla_params()
|
|||
def->tooltip = L("Display orientation");
|
||||
def->cli = "display-orientation=s";
|
||||
def->enum_keys_map = &ConfigOptionEnum<SLADisplayOrientation>::get_enum_values();
|
||||
def->enum_values.push_back("Landscape");
|
||||
def->enum_values.push_back("Portrait");
|
||||
def->enum_values.push_back("landscape");
|
||||
def->enum_values.push_back("portrait");
|
||||
def->enum_labels.push_back(L("Landscape"));
|
||||
def->enum_labels.push_back(L("Portrait"));
|
||||
def->default_value = new ConfigOptionEnum<SLADisplayOrientation>(sladoPortrait);
|
||||
|
||||
def = this->add("printer_correction", coFloats);
|
||||
|
|
|
|||
|
|
@ -155,8 +155,8 @@ template<> inline const t_config_enum_values& ConfigOptionEnum<FilamentType>::ge
|
|||
|
||||
template<> inline const t_config_enum_values& ConfigOptionEnum<SLADisplayOrientation>::get_enum_values() {
|
||||
static const t_config_enum_values keys_map = {
|
||||
{ "Landscape", sladoLandscape},
|
||||
{ "Portrait", sladoPortrait}
|
||||
{ "landscape", sladoLandscape},
|
||||
{ "portrait", sladoPortrait}
|
||||
};
|
||||
|
||||
return keys_map;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue