Skip to content

Commit

Permalink
update to 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveJessyChen committed Sep 8, 2024
1 parent e31ecab commit abd6ca9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cli_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_apply_number(num: int) -> int:
'---' \\ \\ / \\ \\ / `----'
`--`-' `--`-'
""")
print("CLI v2.0")
print("CLI v2.0.1")
print("by LeminLimez")
print("Thanks @disfordottie for the clock animation and @lrdsnow for EU Enabler\n")
print("Please back up your device before using!")
Expand Down
14 changes: 11 additions & 3 deletions devicemanagement/device_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ def apply_changes(self, resetting: bool = False, update_label=lambda x: None):
QMessageBox.information(None, "Success!", "All done! Your device will now restart.")
update_label("Success!")
except Exception as e:
print(traceback.format_exc())
update_label("Failed to restore")
show_error_msg(type(e).__name__)
if "Find My" in str(e):
detailsBox = QMessageBox()
detailsBox.setIcon(QMessageBox.Critical)
detailsBox.setWindowTitle("Error!")
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.exec()
else:
print(traceback.format_exc())
update_label("Failed to restore")
show_error_msg(type(e).__name__)
1 change: 1 addition & 0 deletions exploit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def perform_restore(backup: backup.Backup, reboot: bool = False, lockdown_client
if "Find My" in str(e):
print("Find My must be disabled in order to use this tool.")
print("Disable Find My from Settings (Settings -> [Your Name] -> Find My) and then try again.")
raise e
elif "crash_on_purpose" not in str(e):
raise e
else:
Expand Down
2 changes: 1 addition & 1 deletion qt/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ QToolButton:pressed {
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Nugget GUI - Version 2.0</string>
<string>Nugget GUI - Version 2.0.1</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
Expand Down
2 changes: 1 addition & 1 deletion qt/ui_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2129,7 +2129,7 @@ def retranslateUi(self, Nugget):
self.toolButton_15.setText(QCoreApplication.translate("Nugget", u"Additional Thanks", None))
self.libiBtn.setText(QCoreApplication.translate("Nugget", u"pymobiledevice3", None))
self.qtBtn.setText(QCoreApplication.translate("Nugget", u"Qt Creator", None))
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 2.0", None))
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 2.0.1", None))
self.exploreLbl.setText(QCoreApplication.translate("Nugget", u"Explore", None))
self.exploreSubLbl.setText("")
self.statusBarLbl_2.setText(QCoreApplication.translate("Nugget", u"Location Simulation", None))
Expand Down

0 comments on commit abd6ca9

Please sign in to comment.