mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
remove windows path fix option
This commit is contained in:
@@ -57,7 +57,6 @@ class DeviceManager:
|
|||||||
self.apply_over_wifi = False
|
self.apply_over_wifi = False
|
||||||
self.auto_reboot = True
|
self.auto_reboot = True
|
||||||
self.allow_risky_tweaks = False
|
self.allow_risky_tweaks = False
|
||||||
self.windows_path_fix = False
|
|
||||||
self.show_all_spoofable_models = False
|
self.show_all_spoofable_models = False
|
||||||
self.skip_setup = True
|
self.skip_setup = True
|
||||||
self.supervised = False
|
self.supervised = False
|
||||||
|
|||||||
@@ -197,9 +197,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
self.ui.allowWifiApplyingChk.toggled.connect(self.on_allowWifiApplyingChk_toggled)
|
self.ui.allowWifiApplyingChk.toggled.connect(self.on_allowWifiApplyingChk_toggled)
|
||||||
self.ui.autoRebootChk.toggled.connect(self.on_autoRebootChk_toggled)
|
self.ui.autoRebootChk.toggled.connect(self.on_autoRebootChk_toggled)
|
||||||
self.ui.showRiskyChk.toggled.connect(self.on_showRiskyChk_toggled)
|
self.ui.showRiskyChk.toggled.connect(self.on_showRiskyChk_toggled)
|
||||||
# windows path fix toggle (depreciated)
|
|
||||||
# TODO: Remove this from the UI and everything
|
|
||||||
self.ui.windowsPathFixChk.hide()
|
|
||||||
self.ui.showAllSpoofableChk.toggled.connect(self.on_showAllSpoofableChk_toggled)
|
self.ui.showAllSpoofableChk.toggled.connect(self.on_showAllSpoofableChk_toggled)
|
||||||
|
|
||||||
self.ui.revertRdarChk.toggled.connect(self.on_revertRdarChk_toggled)
|
self.ui.revertRdarChk.toggled.connect(self.on_revertRdarChk_toggled)
|
||||||
@@ -443,7 +440,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
skip_setup = self.settings.value("skip_setup", True, type=bool)
|
skip_setup = self.settings.value("skip_setup", True, type=bool)
|
||||||
supervised = self.settings.value("supervised", False, type=bool)
|
supervised = self.settings.value("supervised", False, type=bool)
|
||||||
organization_name = self.settings.value("organization_name", "", type=str)
|
organization_name = self.settings.value("organization_name", "", type=str)
|
||||||
windows_path_fix = self.settings.value("windows_path_fix", False, type=bool)
|
|
||||||
|
|
||||||
self.ui.allowWifiApplyingChk.setChecked(apply_over_wifi)
|
self.ui.allowWifiApplyingChk.setChecked(apply_over_wifi)
|
||||||
self.ui.autoRebootChk.setChecked(auto_reboot)
|
self.ui.autoRebootChk.setChecked(auto_reboot)
|
||||||
@@ -452,7 +448,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
self.ui.skipSetupChk.setChecked(skip_setup)
|
self.ui.skipSetupChk.setChecked(skip_setup)
|
||||||
self.ui.supervisionChk.setChecked(supervised)
|
self.ui.supervisionChk.setChecked(supervised)
|
||||||
self.ui.supervisionOrganization.setText(organization_name)
|
self.ui.supervisionOrganization.setText(organization_name)
|
||||||
self.ui.windowsPathFixChk.setChecked(windows_path_fix)
|
|
||||||
|
|
||||||
# hide/show the warning label
|
# hide/show the warning label
|
||||||
if skip_setup:
|
if skip_setup:
|
||||||
@@ -467,7 +462,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
self.device_manager.skip_setup = skip_setup
|
self.device_manager.skip_setup = skip_setup
|
||||||
self.device_manager.supervised = supervised
|
self.device_manager.supervised = supervised
|
||||||
self.device_manager.organization_name = organization_name
|
self.device_manager.organization_name = organization_name
|
||||||
self.device_manager.windows_path_fix = windows_path_fix
|
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -1086,10 +1080,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
else:
|
else:
|
||||||
self.ui.advancedPageBtn.hide()
|
self.ui.advancedPageBtn.hide()
|
||||||
self.ui.resetPRBExtBtn.hide()
|
self.ui.resetPRBExtBtn.hide()
|
||||||
def on_windowsPathFixChk_toggled(self, checked: bool):
|
|
||||||
self.device_manager.windows_path_fix = checked
|
|
||||||
# save the setting
|
|
||||||
self.settings.setValue("windows_path_fix", checked)
|
|
||||||
def on_showAllSpoofableChk_toggled(self, checked: bool):
|
def on_showAllSpoofableChk_toggled(self, checked: bool):
|
||||||
self.device_manager.show_all_spoofable_models = checked
|
self.device_manager.show_all_spoofable_models = checked
|
||||||
# save the setting
|
# save the setting
|
||||||
|
|||||||
@@ -4583,6 +4583,13 @@ Will show up in Collections</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="reverseLoopChk">
|
||||||
|
<property name="text">
|
||||||
|
<string>Reverse on Loop</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_30">
|
<layout class="QHBoxLayout" name="horizontalLayout_30">
|
||||||
<item>
|
<item>
|
||||||
@@ -5591,16 +5598,6 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="windowsPathFixChk">
|
|
||||||
<property name="text">
|
|
||||||
<string>Use Windows Path Fix (for Posterboard)</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="showAllSpoofableChk">
|
<widget class="QCheckBox" name="showAllSpoofableChk">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
|
|||||||
@@ -2409,6 +2409,11 @@ class Ui_Nugget(object):
|
|||||||
|
|
||||||
self.verticalLayout_39.addWidget(self.caVideoChk)
|
self.verticalLayout_39.addWidget(self.caVideoChk)
|
||||||
|
|
||||||
|
self.reverseLoopChk = QCheckBox(self.pbVideoPage)
|
||||||
|
self.reverseLoopChk.setObjectName(u"reverseLoopChk")
|
||||||
|
|
||||||
|
self.verticalLayout_39.addWidget(self.reverseLoopChk)
|
||||||
|
|
||||||
self.horizontalLayout_30 = QHBoxLayout()
|
self.horizontalLayout_30 = QHBoxLayout()
|
||||||
self.horizontalLayout_30.setObjectName(u"horizontalLayout_30")
|
self.horizontalLayout_30.setObjectName(u"horizontalLayout_30")
|
||||||
self.chooseThumbBtn = QToolButton(self.pbVideoPage)
|
self.chooseThumbBtn = QToolButton(self.pbVideoPage)
|
||||||
@@ -2910,12 +2915,6 @@ class Ui_Nugget(object):
|
|||||||
|
|
||||||
self._21.addWidget(self.showRiskyChk)
|
self._21.addWidget(self.showRiskyChk)
|
||||||
|
|
||||||
self.windowsPathFixChk = QCheckBox(self.settingsPageContent)
|
|
||||||
self.windowsPathFixChk.setObjectName(u"windowsPathFixChk")
|
|
||||||
self.windowsPathFixChk.setChecked(True)
|
|
||||||
|
|
||||||
self._21.addWidget(self.windowsPathFixChk)
|
|
||||||
|
|
||||||
self.showAllSpoofableChk = QCheckBox(self.settingsPageContent)
|
self.showAllSpoofableChk = QCheckBox(self.settingsPageContent)
|
||||||
self.showAllSpoofableChk.setObjectName(u"showAllSpoofableChk")
|
self.showAllSpoofableChk.setObjectName(u"showAllSpoofableChk")
|
||||||
|
|
||||||
@@ -3841,6 +3840,7 @@ class Ui_Nugget(object):
|
|||||||
"Will show up in Collections", None))
|
"Will show up in Collections", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
self.caVideoChk.setText(QCoreApplication.translate("Nugget", u"Loop (use CoreAnimation method)", None))
|
self.caVideoChk.setText(QCoreApplication.translate("Nugget", u"Loop (use CoreAnimation method)", None))
|
||||||
|
self.reverseLoopChk.setText(QCoreApplication.translate("Nugget", u"Reverse on Loop", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.chooseThumbBtn.setToolTip(QCoreApplication.translate("Nugget", u"Choose a photo for the wallpaper to freeze on when finished (.heic files only)", None))
|
self.chooseThumbBtn.setToolTip(QCoreApplication.translate("Nugget", u"Choose a photo for the wallpaper to freeze on when finished (.heic files only)", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
@@ -3893,7 +3893,6 @@ class Ui_Nugget(object):
|
|||||||
self.allowWifiApplyingChk.setText(QCoreApplication.translate("Nugget", u"Allow Applying Over WiFi", None))
|
self.allowWifiApplyingChk.setText(QCoreApplication.translate("Nugget", u"Allow Applying Over WiFi", None))
|
||||||
self.autoRebootChk.setText(QCoreApplication.translate("Nugget", u"Auto Reboot After Applying", None))
|
self.autoRebootChk.setText(QCoreApplication.translate("Nugget", u"Auto Reboot After Applying", None))
|
||||||
self.showRiskyChk.setText(QCoreApplication.translate("Nugget", u"Show Risky Tweak Options", None))
|
self.showRiskyChk.setText(QCoreApplication.translate("Nugget", u"Show Risky Tweak Options", None))
|
||||||
self.windowsPathFixChk.setText(QCoreApplication.translate("Nugget", u"Use Windows Path Fix (for Posterboard)", None))
|
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.showAllSpoofableChk.setToolTip(QCoreApplication.translate("Nugget", u"Show models for other device types in the AI device spoofing tab.", None))
|
self.showAllSpoofableChk.setToolTip(QCoreApplication.translate("Nugget", u"Show models for other device types in the AI device spoofing tab.", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
|||||||
@@ -2409,6 +2409,11 @@ class Ui_Nugget(object):
|
|||||||
|
|
||||||
self.verticalLayout_39.addWidget(self.caVideoChk)
|
self.verticalLayout_39.addWidget(self.caVideoChk)
|
||||||
|
|
||||||
|
self.reverseLoopChk = QCheckBox(self.pbVideoPage)
|
||||||
|
self.reverseLoopChk.setObjectName(u"reverseLoopChk")
|
||||||
|
|
||||||
|
self.verticalLayout_39.addWidget(self.reverseLoopChk)
|
||||||
|
|
||||||
self.horizontalLayout_30 = QHBoxLayout()
|
self.horizontalLayout_30 = QHBoxLayout()
|
||||||
self.horizontalLayout_30.setObjectName(u"horizontalLayout_30")
|
self.horizontalLayout_30.setObjectName(u"horizontalLayout_30")
|
||||||
self.chooseThumbBtn = QToolButton(self.pbVideoPage)
|
self.chooseThumbBtn = QToolButton(self.pbVideoPage)
|
||||||
@@ -2910,12 +2915,6 @@ class Ui_Nugget(object):
|
|||||||
|
|
||||||
self._21.addWidget(self.showRiskyChk)
|
self._21.addWidget(self.showRiskyChk)
|
||||||
|
|
||||||
self.windowsPathFixChk = QCheckBox(self.settingsPageContent)
|
|
||||||
self.windowsPathFixChk.setObjectName(u"windowsPathFixChk")
|
|
||||||
self.windowsPathFixChk.setChecked(True)
|
|
||||||
|
|
||||||
self._21.addWidget(self.windowsPathFixChk)
|
|
||||||
|
|
||||||
self.showAllSpoofableChk = QCheckBox(self.settingsPageContent)
|
self.showAllSpoofableChk = QCheckBox(self.settingsPageContent)
|
||||||
self.showAllSpoofableChk.setObjectName(u"showAllSpoofableChk")
|
self.showAllSpoofableChk.setObjectName(u"showAllSpoofableChk")
|
||||||
|
|
||||||
@@ -3841,6 +3840,7 @@ class Ui_Nugget(object):
|
|||||||
"Will show up in Collections", None))
|
"Will show up in Collections", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
self.caVideoChk.setText(QCoreApplication.translate("Nugget", u"Loop (use CoreAnimation method)", None))
|
self.caVideoChk.setText(QCoreApplication.translate("Nugget", u"Loop (use CoreAnimation method)", None))
|
||||||
|
self.reverseLoopChk.setText(QCoreApplication.translate("Nugget", u"Reverse on Loop", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.chooseThumbBtn.setToolTip(QCoreApplication.translate("Nugget", u"Choose a photo for the wallpaper to freeze on when finished (.heic files only)", None))
|
self.chooseThumbBtn.setToolTip(QCoreApplication.translate("Nugget", u"Choose a photo for the wallpaper to freeze on when finished (.heic files only)", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
@@ -3893,7 +3893,6 @@ class Ui_Nugget(object):
|
|||||||
self.allowWifiApplyingChk.setText(QCoreApplication.translate("Nugget", u"Allow Applying Over WiFi", None))
|
self.allowWifiApplyingChk.setText(QCoreApplication.translate("Nugget", u"Allow Applying Over WiFi", None))
|
||||||
self.autoRebootChk.setText(QCoreApplication.translate("Nugget", u"Auto Reboot After Applying", None))
|
self.autoRebootChk.setText(QCoreApplication.translate("Nugget", u"Auto Reboot After Applying", None))
|
||||||
self.showRiskyChk.setText(QCoreApplication.translate("Nugget", u"Show Risky Tweak Options", None))
|
self.showRiskyChk.setText(QCoreApplication.translate("Nugget", u"Show Risky Tweak Options", None))
|
||||||
self.windowsPathFixChk.setText(QCoreApplication.translate("Nugget", u"Use Windows Path Fix (for Posterboard)", None))
|
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.showAllSpoofableChk.setToolTip(QCoreApplication.translate("Nugget", u"Show models for other device types in the AI device spoofing tab.", None))
|
self.showAllSpoofableChk.setToolTip(QCoreApplication.translate("Nugget", u"Show models for other device types in the AI device spoofing tab.", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
|||||||
Reference in New Issue
Block a user