mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
add warning that mga file was not added yet
This commit is contained in:
@@ -631,6 +631,9 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
if selected_file == "" or selected_file == None:
|
||||
self.device_manager.data_singleton.gestalt_path = None
|
||||
self.ui.gestaltLocationLbl.setText("None")
|
||||
# show the warning labels
|
||||
self.ui.mgaWarningLbl.show()
|
||||
self.ui.mgaWarningLbl2.show()
|
||||
else:
|
||||
# verify that the gestalt is correct and compatible
|
||||
with open(selected_file, 'rb') as in_fp:
|
||||
@@ -656,6 +659,9 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
dialog.exec()
|
||||
self.device_manager.data_singleton.gestalt_path = selected_file
|
||||
self.ui.gestaltLocationLbl.setText(selected_file)
|
||||
# hide the warning labels
|
||||
self.ui.mgaWarningLbl.hide()
|
||||
self.ui.mgaWarningLbl2.hide()
|
||||
|
||||
def update_label(self, txt: str):
|
||||
self.ui.statusLbl.setText(txt)
|
||||
|
||||
@@ -1566,7 +1566,7 @@ QToolButton:pressed {
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Nugget GUI - Version 4.0.1</string>
|
||||
<string>Nugget GUI - Version 4.0.1 (beta 1)</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -1708,6 +1708,19 @@ QToolButton:pressed {
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="mgaWarningLbl">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>-1</pointsize>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>! Your device's mobilegestalt file is required for this feature. Select it on the apply page.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<property name="frameShape">
|
||||
@@ -2646,6 +2659,19 @@ QComboBox QAbstractItemView::item:hover {
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="mgaWarningLbl2">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>-1</pointsize>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>! Your device's mobilegestalt file is required for this feature. Select it on the apply page.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="enableAIChk">
|
||||
<property name="text">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -937,6 +937,12 @@ class Ui_Nugget(object):
|
||||
|
||||
self.verticalLayout_4.addWidget(self.line_8)
|
||||
|
||||
self.mgaWarningLbl = QLabel(self.gestaltPage)
|
||||
self.mgaWarningLbl.setObjectName(u"mgaWarningLbl")
|
||||
self.mgaWarningLbl.setFont(font2)
|
||||
|
||||
self.verticalLayout_4.addWidget(self.mgaWarningLbl)
|
||||
|
||||
self.scrollArea = QScrollArea(self.gestaltPage)
|
||||
self.scrollArea.setObjectName(u"scrollArea")
|
||||
self.scrollArea.setFrameShape(QFrame.NoFrame)
|
||||
@@ -1459,6 +1465,12 @@ class Ui_Nugget(object):
|
||||
|
||||
self.verticalLayout_16.addWidget(self.euEnablerContent)
|
||||
|
||||
self.mgaWarningLbl2 = QLabel(self.euEnablerPageContent)
|
||||
self.mgaWarningLbl2.setObjectName(u"mgaWarningLbl2")
|
||||
self.mgaWarningLbl2.setFont(font2)
|
||||
|
||||
self.verticalLayout_16.addWidget(self.mgaWarningLbl2)
|
||||
|
||||
self.enableAIChk = QCheckBox(self.euEnablerPageContent)
|
||||
self.enableAIChk.setObjectName(u"enableAIChk")
|
||||
|
||||
@@ -2718,8 +2730,9 @@ 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 4.0.1", None))
|
||||
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 4.0.1 (beta 1)", None))
|
||||
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
|
||||
self.mgaWarningLbl.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None))
|
||||
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
|
||||
self.dynamicIslandDrp.setItemText(0, QCoreApplication.translate("Nugget", u"None", None))
|
||||
self.dynamicIslandDrp.setItemText(1, QCoreApplication.translate("Nugget", u"2436 (iPhone X Gestures for SE phones)", None))
|
||||
@@ -2766,6 +2779,7 @@ class Ui_Nugget(object):
|
||||
|
||||
self.label_6.setText(QCoreApplication.translate("Nugget", u"Region Code (Should be 2 letters)", None))
|
||||
self.regionCodeTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Region Code (Default: US)", None))
|
||||
self.mgaWarningLbl2.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None))
|
||||
self.enableAIChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Intelligence (for Unsupported Devices)", 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))
|
||||
|
||||
@@ -937,6 +937,12 @@ class Ui_Nugget(object):
|
||||
|
||||
self.verticalLayout_4.addWidget(self.line_8)
|
||||
|
||||
self.mgaWarningLbl = QLabel(self.gestaltPage)
|
||||
self.mgaWarningLbl.setObjectName(u"mgaWarningLbl")
|
||||
self.mgaWarningLbl.setFont(font2)
|
||||
|
||||
self.verticalLayout_4.addWidget(self.mgaWarningLbl)
|
||||
|
||||
self.scrollArea = QScrollArea(self.gestaltPage)
|
||||
self.scrollArea.setObjectName(u"scrollArea")
|
||||
self.scrollArea.setFrameShape(QFrame.NoFrame)
|
||||
@@ -1459,6 +1465,12 @@ class Ui_Nugget(object):
|
||||
|
||||
self.verticalLayout_16.addWidget(self.euEnablerContent)
|
||||
|
||||
self.mgaWarningLbl2 = QLabel(self.euEnablerPageContent)
|
||||
self.mgaWarningLbl2.setObjectName(u"mgaWarningLbl2")
|
||||
self.mgaWarningLbl2.setFont(font2)
|
||||
|
||||
self.verticalLayout_16.addWidget(self.mgaWarningLbl2)
|
||||
|
||||
self.enableAIChk = QCheckBox(self.euEnablerPageContent)
|
||||
self.enableAIChk.setObjectName(u"enableAIChk")
|
||||
|
||||
@@ -2718,8 +2730,9 @@ 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 4.0.1", None))
|
||||
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 4.0.1 (beta 1)", None))
|
||||
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
|
||||
self.mgaWarningLbl.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None))
|
||||
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
|
||||
self.dynamicIslandDrp.setItemText(0, QCoreApplication.translate("Nugget", u"None", None))
|
||||
self.dynamicIslandDrp.setItemText(1, QCoreApplication.translate("Nugget", u"2436 (iPhone X Gestures for SE phones)", None))
|
||||
@@ -2766,6 +2779,7 @@ class Ui_Nugget(object):
|
||||
|
||||
self.label_6.setText(QCoreApplication.translate("Nugget", u"Region Code (Should be 2 letters)", None))
|
||||
self.regionCodeTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Region Code (Default: US)", None))
|
||||
self.mgaWarningLbl2.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None))
|
||||
self.enableAIChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Intelligence (for Unsupported Devices)", 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))
|
||||
|
||||
Reference in New Issue
Block a user