mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
skip setup toggle + bump version
This commit is contained in:
@@ -49,7 +49,7 @@ while running:
|
||||
'---' \\ \\ / \\ \\ / `----'
|
||||
`--`-' `--`-'
|
||||
""")
|
||||
print("CLI v3.0")
|
||||
print("CLI v3.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!")
|
||||
|
||||
@@ -29,6 +29,7 @@ class DeviceManager:
|
||||
self.data_singleton = DataSingleton()
|
||||
self.current_device_index = 0
|
||||
self.apply_over_wifi = True
|
||||
self.skip_setup = True
|
||||
|
||||
def get_devices(self):
|
||||
self.devices.clear()
|
||||
|
||||
@@ -115,6 +115,10 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
self.ui.chooseGestaltBtn.clicked.connect(self.on_chooseGestaltBtn_clicked)
|
||||
self.ui.resetGestaltBtn.clicked.connect(self.on_resetGestaltBtn_clicked)
|
||||
|
||||
## SETTINGS PAGE ACTIONS
|
||||
self.ui.allowWifiApplyingChk.clicked.connect(self.on_allowWifiApplyingChk_toggled)
|
||||
self.ui.skipSetupChk.clicked.connect(self.on_skipSetupChk_toggled)
|
||||
|
||||
## MOBILE GESTALT PAGE ACTIONS
|
||||
self.ui.dynamicIslandDrp.activated.connect(self.on_dynamicIslandDrp_activated)
|
||||
self.ui.rdarFixChk.clicked.connect(self.on_rdarFixChk_clicked)
|
||||
@@ -256,8 +260,11 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
try:
|
||||
# load the settings
|
||||
apply_over_wifi = self.settings.value("apply_over_wifi", True, type=bool)
|
||||
skip_setup = self.settings.value("skip_setup", True, type=bool)
|
||||
self.ui.allowWifiApplyingChk.setChecked(apply_over_wifi)
|
||||
self.ui.skipSetupChk.setChecked(skip_setup)
|
||||
self.device_manager.apply_over_wifi = apply_over_wifi
|
||||
self.device_manager.skip_setup = skip_setup
|
||||
except:
|
||||
pass
|
||||
|
||||
@@ -506,6 +513,10 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
self.device_manager.apply_over_wifi = checked
|
||||
# save the setting
|
||||
self.settings.setValue("apply_over_wifi", checked)
|
||||
def on_skipSetupChk_toggled(self, checked: bool):
|
||||
self.device_manager.skip_setup = checked
|
||||
# save the setting
|
||||
self.settings.setValue("skip_setup", checked)
|
||||
|
||||
|
||||
## APPLY PAGE
|
||||
|
||||
@@ -1566,7 +1566,7 @@ QToolButton:pressed {
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Nugget GUI - Version 3.0</string>
|
||||
<string>Nugget GUI - Version 3.1 (beta 1)</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -3705,6 +3705,16 @@ button on the "Apply" page again to fix Face ID.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="skipSetupChk">
|
||||
<property name="text">
|
||||
<string>Skip Setup (non-exploit files only)</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_5">
|
||||
<property name="orientation">
|
||||
|
||||
@@ -1988,6 +1988,12 @@ class Ui_Nugget(object):
|
||||
|
||||
self._21.addWidget(self.allowWifiApplyingChk)
|
||||
|
||||
self.skipSetupChk = QCheckBox(self.settingsPageContent)
|
||||
self.skipSetupChk.setObjectName(u"skipSetupChk")
|
||||
self.skipSetupChk.setChecked(True)
|
||||
|
||||
self._21.addWidget(self.skipSetupChk)
|
||||
|
||||
self.verticalSpacer_51 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
||||
|
||||
self._21.addItem(self.verticalSpacer_51)
|
||||
@@ -2559,7 +2565,7 @@ class Ui_Nugget(object):
|
||||
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 3.0", None))
|
||||
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 3.1 (beta 1)", None))
|
||||
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
|
||||
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
|
||||
self.dynamicIslandDrp.setItemText(0, QCoreApplication.translate("Nugget", u"None", None))
|
||||
@@ -2648,6 +2654,7 @@ class Ui_Nugget(object):
|
||||
self.resetGestaltBtn.setText(QCoreApplication.translate("Nugget", u"Reset Mobile Gestalt", None))
|
||||
self.springboardOptionsLbl1.setText(QCoreApplication.translate("Nugget", u"Nugget Settings", None))
|
||||
self.allowWifiApplyingChk.setText(QCoreApplication.translate("Nugget", u"Allow Applying Over WiFi", None))
|
||||
self.skipSetupChk.setText(QCoreApplication.translate("Nugget", u"Skip Setup (non-exploit files only)", None))
|
||||
self.statusBarLbl_2.setText(QCoreApplication.translate("Nugget", u"Location Simulation", None))
|
||||
self.label_4.setText("")
|
||||
self.loadLocSimBtn.setText(QCoreApplication.translate("Nugget", u"Start Location Simulation", None))
|
||||
|
||||
@@ -1988,6 +1988,12 @@ class Ui_Nugget(object):
|
||||
|
||||
self._21.addWidget(self.allowWifiApplyingChk)
|
||||
|
||||
self.skipSetupChk = QCheckBox(self.settingsPageContent)
|
||||
self.skipSetupChk.setObjectName(u"skipSetupChk")
|
||||
self.skipSetupChk.setChecked(True)
|
||||
|
||||
self._21.addWidget(self.skipSetupChk)
|
||||
|
||||
self.verticalSpacer_51 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
||||
|
||||
self._21.addItem(self.verticalSpacer_51)
|
||||
@@ -2559,7 +2565,7 @@ class Ui_Nugget(object):
|
||||
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 3.0", None))
|
||||
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 3.1 (beta 1)", None))
|
||||
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
|
||||
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
|
||||
self.dynamicIslandDrp.setItemText(0, QCoreApplication.translate("Nugget", u"None", None))
|
||||
@@ -2648,6 +2654,7 @@ class Ui_Nugget(object):
|
||||
self.resetGestaltBtn.setText(QCoreApplication.translate("Nugget", u"Reset Mobile Gestalt", None))
|
||||
self.springboardOptionsLbl1.setText(QCoreApplication.translate("Nugget", u"Nugget Settings", None))
|
||||
self.allowWifiApplyingChk.setText(QCoreApplication.translate("Nugget", u"Allow Applying Over WiFi", None))
|
||||
self.skipSetupChk.setText(QCoreApplication.translate("Nugget", u"Skip Setup (non-exploit files only)", None))
|
||||
self.statusBarLbl_2.setText(QCoreApplication.translate("Nugget", u"Location Simulation", None))
|
||||
self.label_4.setText("")
|
||||
self.loadLocSimBtn.setText(QCoreApplication.translate("Nugget", u"Start Location Simulation", None))
|
||||
|
||||
Reference in New Issue
Block a user