mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
merge hardware model spoofing back in
This commit is contained in:
@@ -82,7 +82,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
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)
|
||||||
self.ui.spoofedModelDrp.activated.connect(self.on_spoofedModelDrp_activated)
|
self.ui.spoofedModelDrp.activated.connect(self.on_spoofedModelDrp_activated)
|
||||||
self.ui.spoofHardwareChk.toggled.connect(self.on_spoofHardwareChk_toggled)
|
|
||||||
|
|
||||||
## FEATURE FLAGS PAGE
|
## FEATURE FLAGS PAGE
|
||||||
self.ui.clockAnimChk.toggled.connect(self.on_clockAnimChk_toggled)
|
self.ui.clockAnimChk.toggled.connect(self.on_clockAnimChk_toggled)
|
||||||
@@ -563,25 +562,14 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
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)
|
||||||
|
|
||||||
def set_spoof_hardware(self, index: int):
|
|
||||||
if tweaks["SpoofHardware"].enabled:
|
|
||||||
tweaks["SpoofHardware"].set_selected_option(index)
|
|
||||||
def on_spoofedModelDrp_activated(self, index: int):
|
def on_spoofedModelDrp_activated(self, index: int):
|
||||||
tweaks["SpoofModel"].set_selected_option(index)
|
tweaks["SpoofModel"].set_selected_option(index)
|
||||||
if index == 0:
|
if index == 0:
|
||||||
self.set_spoof_hardware(0)
|
tweaks["SpoofHardware"].set_selected_option(0)
|
||||||
tweaks["SpoofCPU"].set_selected_option(0)
|
tweaks["SpoofCPU"].set_selected_option(0)
|
||||||
else:
|
else:
|
||||||
self.set_spoof_hardware(1)
|
tweaks["SpoofHardware"].set_selected_option(1)
|
||||||
tweaks["SpoofCPU"].set_selected_option(1)
|
tweaks["SpoofCPU"].set_selected_option(1)
|
||||||
def on_spoofHardwareChk_toggled(self, checked: bool):
|
|
||||||
if checked:
|
|
||||||
spoofed_model = 0
|
|
||||||
if self.ui.spoofedModelDrp.currentIndex != 0:
|
|
||||||
spoofed_model = 1
|
|
||||||
tweaks["SpoofHardware"].set_selected_option(spoofed_model)
|
|
||||||
else:
|
|
||||||
tweaks["SpoofHardware"].set_enabled(False)
|
|
||||||
|
|
||||||
|
|
||||||
## SPRINGBOARD OPTIONS PAGE
|
## SPRINGBOARD OPTIONS PAGE
|
||||||
|
|||||||
@@ -2860,13 +2860,6 @@ QComboBox QAbstractItemView::item:hover {
|
|||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="spoofHardwareChk">
|
|
||||||
<property name="text">
|
|
||||||
<string>Spoof Hardware Model (may cause issues)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -1571,11 +1571,6 @@ class Ui_Nugget(object):
|
|||||||
|
|
||||||
self.verticalLayout_34.addWidget(self.spoofedModelDrp)
|
self.verticalLayout_34.addWidget(self.spoofedModelDrp)
|
||||||
|
|
||||||
self.spoofHardwareChk = QCheckBox(self.aiEnablerContent)
|
|
||||||
self.spoofHardwareChk.setObjectName(u"spoofHardwareChk")
|
|
||||||
|
|
||||||
self.verticalLayout_34.addWidget(self.spoofHardwareChk)
|
|
||||||
|
|
||||||
|
|
||||||
self.verticalLayout_16.addWidget(self.aiEnablerContent)
|
self.verticalLayout_16.addWidget(self.aiEnablerContent)
|
||||||
|
|
||||||
@@ -2820,7 +2815,6 @@ class Ui_Nugget(object):
|
|||||||
self.spoofedModelDrp.setItemText(7, QCoreApplication.translate("Nugget", u"iPad16,3 (iPad Pro M4)", None))
|
self.spoofedModelDrp.setItemText(7, QCoreApplication.translate("Nugget", u"iPad16,3 (iPad Pro M4)", None))
|
||||||
|
|
||||||
self.spoofedModelDrp.setCurrentText(QCoreApplication.translate("Nugget", u"None", None))
|
self.spoofedModelDrp.setCurrentText(QCoreApplication.translate("Nugget", u"None", None))
|
||||||
self.spoofHardwareChk.setText(QCoreApplication.translate("Nugget", u"Spoof Hardware Model (may cause issues)", None))
|
|
||||||
self.springboardOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Springboard Options", None))
|
self.springboardOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Springboard Options", None))
|
||||||
self.label_13.setText(QCoreApplication.translate("Nugget", u"Lock Screen Footnote Text", None))
|
self.label_13.setText(QCoreApplication.translate("Nugget", u"Lock Screen Footnote Text", None))
|
||||||
self.footnoteTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Footnote Text", None))
|
self.footnoteTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Footnote Text", None))
|
||||||
|
|||||||
@@ -1571,11 +1571,6 @@ class Ui_Nugget(object):
|
|||||||
|
|
||||||
self.verticalLayout_34.addWidget(self.spoofedModelDrp)
|
self.verticalLayout_34.addWidget(self.spoofedModelDrp)
|
||||||
|
|
||||||
self.spoofHardwareChk = QCheckBox(self.aiEnablerContent)
|
|
||||||
self.spoofHardwareChk.setObjectName(u"spoofHardwareChk")
|
|
||||||
|
|
||||||
self.verticalLayout_34.addWidget(self.spoofHardwareChk)
|
|
||||||
|
|
||||||
|
|
||||||
self.verticalLayout_16.addWidget(self.aiEnablerContent)
|
self.verticalLayout_16.addWidget(self.aiEnablerContent)
|
||||||
|
|
||||||
@@ -2820,7 +2815,6 @@ class Ui_Nugget(object):
|
|||||||
self.spoofedModelDrp.setItemText(7, QCoreApplication.translate("Nugget", u"iPad16,3 (iPad Pro M4)", None))
|
self.spoofedModelDrp.setItemText(7, QCoreApplication.translate("Nugget", u"iPad16,3 (iPad Pro M4)", None))
|
||||||
|
|
||||||
self.spoofedModelDrp.setCurrentText(QCoreApplication.translate("Nugget", u"None", None))
|
self.spoofedModelDrp.setCurrentText(QCoreApplication.translate("Nugget", u"None", None))
|
||||||
self.spoofHardwareChk.setText(QCoreApplication.translate("Nugget", u"Spoof Hardware Model (may cause issues)", None))
|
|
||||||
self.springboardOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Springboard Options", None))
|
self.springboardOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Springboard Options", None))
|
||||||
self.label_13.setText(QCoreApplication.translate("Nugget", u"Lock Screen Footnote Text", None))
|
self.label_13.setText(QCoreApplication.translate("Nugget", u"Lock Screen Footnote Text", None))
|
||||||
self.footnoteTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Footnote Text", None))
|
self.footnoteTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Footnote Text", None))
|
||||||
|
|||||||
Reference in New Issue
Block a user