mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
remove experimental + hide eligibility on non-exploit versions
This commit is contained in:
@@ -77,7 +77,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
|
|
||||||
self.ui.enableAIChk.toggled.connect(self.on_enableAIChk_toggled)
|
self.ui.enableAIChk.toggled.connect(self.on_enableAIChk_toggled)
|
||||||
self.ui.eligFileChk.toggled.connect(self.on_eligFileChk_toggled)
|
self.ui.eligFileChk.toggled.connect(self.on_eligFileChk_toggled)
|
||||||
self.ui.experimentalChk.toggled.connect(self.on_experimentalChk_toggled)
|
|
||||||
self.ui.languageTxt.hide() # to be removed later
|
self.ui.languageTxt.hide() # to be removed later
|
||||||
self.ui.languageLbl.hide() # to be removed later
|
self.ui.languageLbl.hide() # to be removed later
|
||||||
self.ui.languageTxt.textEdited.connect(self.on_languageTxt_textEdited)
|
self.ui.languageTxt.textEdited.connect(self.on_languageTxt_textEdited)
|
||||||
@@ -226,7 +225,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
# hide options that are for newer versions
|
# hide options that are for newer versions
|
||||||
# remove the new dynamic island options
|
# remove the new dynamic island options
|
||||||
MinTweakVersions = {
|
MinTweakVersions = {
|
||||||
"exploit": [("18.0", self.ui.featureFlagsPageBtn)],
|
"exploit": [("18.0", self.ui.featureFlagsPageBtn), ("18.1", self.ui.eligFileChk)],
|
||||||
"18.1": [self.ui.enableAIChk, self.ui.aiEnablerContent],
|
"18.1": [self.ui.enableAIChk, self.ui.aiEnablerContent],
|
||||||
"18.0": [self.ui.aodChk, self.ui.iphone16SettingsChk]
|
"18.0": [self.ui.aodChk, self.ui.iphone16SettingsChk]
|
||||||
}
|
}
|
||||||
@@ -568,8 +567,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
else:
|
else:
|
||||||
self.ui.languageTxt.hide()
|
self.ui.languageTxt.hide()
|
||||||
self.ui.languageLbl.hide()
|
self.ui.languageLbl.hide()
|
||||||
def on_experimentalChk_toggled(self, checked: bool):
|
|
||||||
tweaks["AIExperiment"].set_enabled(checked)
|
|
||||||
|
|
||||||
def on_languageTxt_textEdited(self, text: str):
|
def on_languageTxt_textEdited(self, text: str):
|
||||||
tweaks["AIEligibility"].set_language_code(text)
|
tweaks["AIEligibility"].set_language_code(text)
|
||||||
|
|||||||
@@ -1571,7 +1571,7 @@ QToolButton:pressed {
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Nugget GUI - Version 4.0.1</string>
|
<string>Nugget GUI - Version 4.1 (beta 1)</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
@@ -2702,14 +2702,7 @@ QComboBox QAbstractItemView::item:hover {
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="eligFileChk">
|
<widget class="QCheckBox" name="eligFileChk">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Enable Eligibility File (test)</string>
|
<string>Enable Eligibility File</string>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="experimentalChk">
|
|
||||||
<property name="text">
|
|
||||||
<string>Experimental Toggle</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -4082,11 +4075,14 @@ QComboBox QAbstractItemView::item:hover {
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="supervisionChk">
|
<widget class="QCheckBox" name="supervisionChk">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Enable Supervision * (requires Skip Setup)</string>
|
<string>Enable Supervision * (requires Skip Setup)</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
## Form generated from reading UI file 'mainwindow.ui'
|
## Form generated from reading UI file 'mainwindow.ui'
|
||||||
##
|
##
|
||||||
## Created by: Qt User Interface Compiler version 6.8.0
|
## Created by: Qt User Interface Compiler version 6.7.2
|
||||||
##
|
##
|
||||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
################################################################################
|
################################################################################
|
||||||
@@ -1487,11 +1487,6 @@ class Ui_Nugget(object):
|
|||||||
|
|
||||||
self.verticalLayout_34.addWidget(self.eligFileChk)
|
self.verticalLayout_34.addWidget(self.eligFileChk)
|
||||||
|
|
||||||
self.experimentalChk = QCheckBox(self.aiEnablerContent)
|
|
||||||
self.experimentalChk.setObjectName(u"experimentalChk")
|
|
||||||
|
|
||||||
self.verticalLayout_34.addWidget(self.experimentalChk)
|
|
||||||
|
|
||||||
self.languageLbl = QLabel(self.aiEnablerContent)
|
self.languageLbl = QLabel(self.aiEnablerContent)
|
||||||
self.languageLbl.setObjectName(u"languageLbl")
|
self.languageLbl.setObjectName(u"languageLbl")
|
||||||
|
|
||||||
@@ -2166,7 +2161,8 @@ class Ui_Nugget(object):
|
|||||||
|
|
||||||
self.supervisionChk = QCheckBox(self.settingsPageContent)
|
self.supervisionChk = QCheckBox(self.settingsPageContent)
|
||||||
self.supervisionChk.setObjectName(u"supervisionChk")
|
self.supervisionChk.setObjectName(u"supervisionChk")
|
||||||
self.supervisionChk.setChecked(True)
|
self.supervisionChk.setEnabled(True)
|
||||||
|
self.supervisionChk.setChecked(False)
|
||||||
|
|
||||||
self._21.addWidget(self.supervisionChk)
|
self._21.addWidget(self.supervisionChk)
|
||||||
|
|
||||||
@@ -2730,30 +2726,30 @@ class Ui_Nugget(object):
|
|||||||
|
|
||||||
def retranslateUi(self, Nugget):
|
def retranslateUi(self, Nugget):
|
||||||
Nugget.setWindowTitle(QCoreApplication.translate("Nugget", u"Nugget", None))
|
Nugget.setWindowTitle(QCoreApplication.translate("Nugget", u"Nugget", None))
|
||||||
self.centralwidget.setProperty(u"cls", QCoreApplication.translate("Nugget", u"central", None))
|
self.centralwidget.setProperty("cls", QCoreApplication.translate("Nugget", u"central", None))
|
||||||
self.devicePicker.setPlaceholderText(QCoreApplication.translate("Nugget", u"None", None))
|
self.devicePicker.setPlaceholderText(QCoreApplication.translate("Nugget", u"None", None))
|
||||||
self.refreshBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"btn", None))
|
self.refreshBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"btn", None))
|
||||||
self.titleBar.setText(QCoreApplication.translate("Nugget", u"Nugget", None))
|
self.titleBar.setText(QCoreApplication.translate("Nugget", u"Nugget", None))
|
||||||
self.homePageBtn.setText(QCoreApplication.translate("Nugget", u" Home", None))
|
self.homePageBtn.setText(QCoreApplication.translate("Nugget", u" Home", None))
|
||||||
self.homePageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
self.homePageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||||
self.explorePageBtn.setText(QCoreApplication.translate("Nugget", u" Explore", None))
|
self.explorePageBtn.setText(QCoreApplication.translate("Nugget", u" Explore", None))
|
||||||
self.explorePageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
self.explorePageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||||
self.locSimPageBtn.setText(QCoreApplication.translate("Nugget", u" Location Simulation", None))
|
self.locSimPageBtn.setText(QCoreApplication.translate("Nugget", u" Location Simulation", None))
|
||||||
self.locSimPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
self.locSimPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||||
self.gestaltPageBtn.setText(QCoreApplication.translate("Nugget", u" Mobile Gestalt", None))
|
self.gestaltPageBtn.setText(QCoreApplication.translate("Nugget", u" Mobile Gestalt", None))
|
||||||
self.gestaltPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
self.gestaltPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||||
self.featureFlagsPageBtn.setText(QCoreApplication.translate("Nugget", u" Feature Flags", None))
|
self.featureFlagsPageBtn.setText(QCoreApplication.translate("Nugget", u" Feature Flags", None))
|
||||||
self.featureFlagsPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
self.featureFlagsPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||||
self.euEnablerPageBtn.setText(QCoreApplication.translate("Nugget", u" Eligibility", None))
|
self.euEnablerPageBtn.setText(QCoreApplication.translate("Nugget", u" Eligibility", None))
|
||||||
self.euEnablerPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
self.euEnablerPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||||
self.springboardOptionsPageBtn.setText(QCoreApplication.translate("Nugget", u" Springboard Options", None))
|
self.springboardOptionsPageBtn.setText(QCoreApplication.translate("Nugget", u" Springboard Options", None))
|
||||||
self.springboardOptionsPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
self.springboardOptionsPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||||
self.internalOptionsPageBtn.setText(QCoreApplication.translate("Nugget", u" Internal Options", None))
|
self.internalOptionsPageBtn.setText(QCoreApplication.translate("Nugget", u" Internal Options", None))
|
||||||
self.internalOptionsPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
self.internalOptionsPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||||
self.applyPageBtn.setText(QCoreApplication.translate("Nugget", u" Apply", None))
|
self.applyPageBtn.setText(QCoreApplication.translate("Nugget", u" Apply", None))
|
||||||
self.applyPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
self.applyPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||||
self.settingsPageBtn.setText(QCoreApplication.translate("Nugget", u" Settings", None))
|
self.settingsPageBtn.setText(QCoreApplication.translate("Nugget", u" Settings", None))
|
||||||
self.settingsPageBtn.setProperty(u"cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
self.settingsPageBtn.setProperty("cls", QCoreApplication.translate("Nugget", u"sidebarBtn", None))
|
||||||
self.phoneNameLbl.setText(QCoreApplication.translate("Nugget", u"Phone", None))
|
self.phoneNameLbl.setText(QCoreApplication.translate("Nugget", u"Phone", None))
|
||||||
self.phoneVersionLbl.setText(QCoreApplication.translate("Nugget", u"<a style=\"text-decoration:none; color: white\" href=\"#\">Version</a>", None))
|
self.phoneVersionLbl.setText(QCoreApplication.translate("Nugget", u"<a style=\"text-decoration:none; color: white\" href=\"#\">Version</a>", None))
|
||||||
self.bigNuggetBtn.setText(QCoreApplication.translate("Nugget", u"...", None))
|
self.bigNuggetBtn.setText(QCoreApplication.translate("Nugget", u"...", None))
|
||||||
@@ -2775,7 +2771,7 @@ class Ui_Nugget(object):
|
|||||||
self.toolButton_15.setText(QCoreApplication.translate("Nugget", u"Additional Thanks", None))
|
self.toolButton_15.setText(QCoreApplication.translate("Nugget", u"Additional Thanks", None))
|
||||||
self.libiBtn.setText(QCoreApplication.translate("Nugget", u"pymobiledevice3", None))
|
self.libiBtn.setText(QCoreApplication.translate("Nugget", u"pymobiledevice3", None))
|
||||||
self.qtBtn.setText(QCoreApplication.translate("Nugget", u"Qt Creator", None))
|
self.qtBtn.setText(QCoreApplication.translate("Nugget", u"Qt Creator", None))
|
||||||
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 4.0.1", None))
|
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 4.1 (beta 1)", None))
|
||||||
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
|
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
|
||||||
self.mgaWarningLbl.setText(QCoreApplication.translate("Nugget", u"! You will need a MobileGestalt file for this feature. Please select it in the Apply page !", None))
|
self.mgaWarningLbl.setText(QCoreApplication.translate("Nugget", u"! You will need a MobileGestalt file for this feature. Please select it in the Apply page !", None))
|
||||||
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
|
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
|
||||||
@@ -2826,8 +2822,7 @@ class Ui_Nugget(object):
|
|||||||
self.regionCodeTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Region Code (Default: US)", None))
|
self.regionCodeTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Region Code (Default: US)", None))
|
||||||
self.mgaWarningLbl2.setText(QCoreApplication.translate("Nugget", u"! You will need a MobileGestalt file for this feature. Please select it in the Apply page !", None))
|
self.mgaWarningLbl2.setText(QCoreApplication.translate("Nugget", u"! You will need a MobileGestalt file for this feature. Please select it in the Apply page !", None))
|
||||||
self.enableAIChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Intelligence (for Unsupported Devices)", None))
|
self.enableAIChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Intelligence (for Unsupported Devices)", None))
|
||||||
self.eligFileChk.setText(QCoreApplication.translate("Nugget", u"Enable Eligibility File (test)", None))
|
self.eligFileChk.setText(QCoreApplication.translate("Nugget", u"Enable Eligibility File", None))
|
||||||
self.experimentalChk.setText(QCoreApplication.translate("Nugget", u"Experimental Toggle", None))
|
|
||||||
self.languageLbl.setText(QCoreApplication.translate("Nugget", u"Language Code (not needed for English)", None))
|
self.languageLbl.setText(QCoreApplication.translate("Nugget", u"Language Code (not needed for English)", None))
|
||||||
self.languageTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Language Code (i.e. en)", None))
|
self.languageTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Language Code (i.e. en)", None))
|
||||||
self.aiInfoLabel.setText(QCoreApplication.translate("Nugget", u"In order to download the AI models, you must spoof your device model. However, this may break \n"
|
self.aiInfoLabel.setText(QCoreApplication.translate("Nugget", u"In order to download the AI models, you must spoof your device model. However, this may break \n"
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ tweaks = {
|
|||||||
## AI Enabler
|
## AI Enabler
|
||||||
"AIEligibility": AITweak(),
|
"AIEligibility": AITweak(),
|
||||||
"AIGestalt": MobileGestaltTweak("Enable Apple Intelligence (for Unsupported Devices) (Gestalt)", "A62OafQ85EJAiiqKn4agtg", min_version=Version("18.1")),
|
"AIGestalt": MobileGestaltTweak("Enable Apple Intelligence (for Unsupported Devices) (Gestalt)", "A62OafQ85EJAiiqKn4agtg", min_version=Version("18.1")),
|
||||||
"AIExperiment": MobileGestaltTweak("Enable AI Experiment", "I3lidq+FVH2CeOi/ARa0tg", min_version=Version("18.1")),
|
|
||||||
"SpoofModel": MobileGestaltPickerTweak("Spoofed Device Model", "h9jDsbgj7xIVeIQ8S3/X3Q", values=[
|
"SpoofModel": MobileGestaltPickerTweak("Spoofed Device Model", "h9jDsbgj7xIVeIQ8S3/X3Q", values=[
|
||||||
# Default
|
# Default
|
||||||
"Placeholder", # 0 | Original
|
"Placeholder", # 0 | Original
|
||||||
|
|||||||
Reference in New Issue
Block a user