Skip to content

Commit

Permalink
Clean up invalid URL error and enable save button after scanning is done
Browse files Browse the repository at this point in the history
Closes #517
  • Loading branch information
gdombiak committed Oct 4, 2021
1 parent ddfe8f5 commit ea15714
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OctoPod/Settings UI/Printers/AppKeyViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ class AppKeyViewController: BasePrinterDetailsViewController, UIPopoverPresentat
self.printerNameField.text = selectedService.name
// Update hostname based on discovered information
self.hostnameField.text = selectedService.hostname
// Enable Request button
updateNextButton()
// URL changed from scanning (instead of typing). This will clean up any invalid URL message
self.urlChanged(self)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ class PrinterDetailsViewController: BasePrinterDetailsViewController, CloudKitPr
self.printerNameField.text = selectedService.name
// Update hostname based on discovered information
self.hostnameField.text = selectedService.hostname
// URL changed from scanning (instead of typing). This will clean up any invalid URL message
self.urlChanged(self)
self.updatePrinterURL()
}
}
Expand Down

0 comments on commit ea15714

Please sign in to comment.