add warning for inactive session error

This commit is contained in:
leminlimez
2024-10-30 15:54:08 -04:00
parent d011a5aaff
commit 62460d6f6f

View File

@@ -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")