mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
add warning for inactive session error
This commit is contained in:
@@ -334,6 +334,12 @@ class DeviceManager:
|
|||||||
detailsBox.setText("Find My must be disabled in order to use this tool.")
|
detailsBox.setText("Find My must be disabled in order to use this tool.")
|
||||||
detailsBox.setDetailedText("Disable Find My from Settings (Settings -> [Your Name] -> Find My) and then try again.")
|
detailsBox.setDetailedText("Disable Find My from Settings (Settings -> [Your Name] -> Find My) and then try again.")
|
||||||
detailsBox.exec()
|
detailsBox.exec()
|
||||||
|
elif "SessionInactive" in str(e):
|
||||||
|
detailsBox = QMessageBox()
|
||||||
|
detailsBox.setIcon(QMessageBox.Critical)
|
||||||
|
detailsBox.setWindowTitle("Error!")
|
||||||
|
detailsBox.setText("The session was terminated. Refresh the device list and try again.")
|
||||||
|
detailsBox.exec()
|
||||||
else:
|
else:
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
update_label("Failed to restore")
|
update_label("Failed to restore")
|
||||||
|
|||||||
Reference in New Issue
Block a user