- console.log("Storing port in DB: " + text)
- SettingsStorage.setSetting("port", text)
+ onTextChanged: {
+ if(text === "No device found yet.")
+ return
+
+ connectButton.enabled = true
+ infoText.text = "Press \"Connect\" to connect to the device."
+ console.log("Storing address in DB: " + text)
+ SettingsStorage.setSetting("address", text)
+ }
+ }
+ TextField{
+ id: portField
+ text: "na"
+ width: 60
+ validator: IntValidator{}
+
+ onTextChanged: {
+ if(text === "na")
+ return
+
+ console.log("Storing port in DB: " + text)
+ SettingsStorage.setSetting("port", text)
+ }