Browse Source

disable minimum layer time settings if minimum layer time is zero

These settings don't have a meaning when the minimum layer time is zero.
PP-71
Rijk van Manen 2 years ago
parent
commit
3035583de9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      resources/definitions/fdmprinter.def.json

+ 3 - 0
resources/definitions/fdmprinter.def.json

@@ -4405,6 +4405,7 @@
                     "unit": "mm/s",
                     "type": "float",
                     "default_value": 10,
+                    "enable": "cool_min_layer_time > 0",
                     "minimum_value": "0",
                     "maximum_value_warning": "100",
                     "settable_per_mesh": false,
@@ -4416,6 +4417,7 @@
                     "description": "When the minimum speed is hit because of minimum layer time, lift the head away from the print and wait the extra time until the minimum layer time is reached.",
                     "type": "bool",
                     "default_value": false,
+                    "enable": "cool_min_layer_time > 0",
                     "settable_per_mesh": false,
                     "settable_per_extruder": true
                 },
@@ -4426,6 +4428,7 @@
                     "unit": "\u00b0C",
                     "type": "float",
                     "value": "material_print_temperature",
+                    "enable": "cool_min_layer_time > 0",
                     "minimum_value": "material_final_print_temperature",
                     "maximum_value": "material_print_temperature",
                     "settable_per_mesh": false,