Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfieldOfView <aldo@fieldofview.com>2020-12-07 18:04:21 +0300
committerfieldOfView <aldo@fieldofview.com>2020-12-07 18:04:21 +0300
commit0313b29dcf95bec65cbfdd721fde198154dceaa6 (patch)
tree1e7c810b22be101a5e8af92cb093a9b7abf60e97 /plugins/MachineSettingsAction
parent19d432e50f6a73b18977769e46a0821c6c3abd8b (diff)
Fix validator for floats in Machine Settings dialog
The DoubleValidator depends on the system locale, requiring users with certain locales to enter floats with a comma instead of a dot (though confusingly floats are always represented with a decimal a dot). Instead of configuring the DoubleValidator with a locale that only accepts decimal dots, this commit uses a RegExpValidator, like other numeric fields in Cura does.
Diffstat (limited to 'plugins/MachineSettingsAction')
-rw-r--r--plugins/MachineSettingsAction/MachineSettingsExtruderTab.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/MachineSettingsAction/MachineSettingsExtruderTab.qml b/plugins/MachineSettingsAction/MachineSettingsExtruderTab.qml
index 902388b669..293e7386b2 100644
--- a/plugins/MachineSettingsAction/MachineSettingsExtruderTab.qml
+++ b/plugins/MachineSettingsAction/MachineSettingsExtruderTab.qml
@@ -137,6 +137,7 @@ Item
labelWidth: base.labelWidth
controlWidth: base.controlWidth
unitText: ""
+ decimals: 0
forceUpdateOnChangeFunction: forceUpdateFunction
}
}