mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Merge remote-tracking branch 'origin/WIP_onboarding_by_ip' into WIP_onboarding_machine_action
This commit is contained in:
commit
f2d7f93101
3 changed files with 6 additions and 9 deletions
|
@ -18,7 +18,6 @@ Item
|
|||
|
||||
id: addPrinterByIpScreen
|
||||
|
||||
property bool hasPushedAdd: false
|
||||
property bool hasSentRequest: false
|
||||
property bool haveConnection: false
|
||||
|
||||
|
@ -42,7 +41,7 @@ Item
|
|||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||
anchors.bottomMargin: UM.Theme.getSize("default_margin").height
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
width: (parent.width * 3 / 4) | 0
|
||||
width: Math.floor(parent.width * 3 / 4)
|
||||
|
||||
Item
|
||||
{
|
||||
|
@ -79,7 +78,7 @@ Item
|
|||
|
||||
validator: RegExpValidator
|
||||
{
|
||||
regExp: /[0-9\.\-\_]*/
|
||||
regExp: /[a-fA-F0-9\.\:]*/
|
||||
}
|
||||
|
||||
onAccepted: addPrinterButton.clicked()
|
||||
|
@ -99,12 +98,11 @@ Item
|
|||
{
|
||||
if (hostnameField.text.trim() != "")
|
||||
{
|
||||
addPrinterByIpScreen.hasPushedAdd = true
|
||||
UM.OutputDeviceManager.addManualDevice(hostnameField.text, hostnameField.text)
|
||||
enabled = false;
|
||||
UM.OutputDeviceManager.addManualDevice(hostnameField.text, hostnameField.text);
|
||||
}
|
||||
}
|
||||
|
||||
enabled: ! addPrinterByIpScreen.hasPushedAdd
|
||||
BusyIndicator
|
||||
{
|
||||
anchors.fill: parent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue