|
|
@ -384,8 +384,7 @@ class Setup(Widget): |
|
|
|
|
|
|
|
|
|
|
|
gui_app.request_close() |
|
|
|
gui_app.request_close() |
|
|
|
|
|
|
|
|
|
|
|
except Exception as e: |
|
|
|
except Exception: |
|
|
|
print(e) |
|
|
|
|
|
|
|
error_msg = "Ensure the entered URL is valid, and the device's internet connection is good." |
|
|
|
error_msg = "Ensure the entered URL is valid, and the device's internet connection is good." |
|
|
|
self.download_failed(self.download_url, error_msg) |
|
|
|
self.download_failed(self.download_url, error_msg) |
|
|
|
|
|
|
|
|
|
|
@ -394,6 +393,7 @@ class Setup(Widget): |
|
|
|
self.failed_reason = reason |
|
|
|
self.failed_reason = reason |
|
|
|
self.state = SetupState.DOWNLOAD_FAILED |
|
|
|
self.state = SetupState.DOWNLOAD_FAILED |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main(): |
|
|
|
def main(): |
|
|
|
try: |
|
|
|
try: |
|
|
|
gui_app.init_window("Setup", 20) |
|
|
|
gui_app.init_window("Setup", 20) |
|
|
|