Browse Source

Add max length to machine name textbox

CURA-6435
Lipu Fei 5 years ago
parent
commit
96e10ee00c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      resources/qml/WelcomePages/AddLocalPrinterScrollView.qml

+ 1 - 0
resources/qml/WelcomePages/AddLocalPrinterScrollView.qml

@@ -213,6 +213,7 @@ Item
             anchors.verticalCenter: parent.verticalCenter
             width: (parent.width / 2) | 0
             placeholderText: catalog.i18nc("@text", "Please give your printer a name")
+            maximumLength: 40
 
             // Make sure that the fill is not empty
             validator: RegExpValidator { regExp: /.+/ }