remove windows path fix option

This commit is contained in:
leminlimez
2025-03-30 17:17:24 -04:00
parent 0acbe16fc4
commit 60a4541a02
5 changed files with 19 additions and 35 deletions

View File

@@ -57,7 +57,6 @@ class DeviceManager:
self.apply_over_wifi = False
self.auto_reboot = True
self.allow_risky_tweaks = False
self.windows_path_fix = False
self.show_all_spoofable_models = False
self.skip_setup = True
self.supervised = False

View File

@@ -197,9 +197,6 @@ class MainWindow(QtWidgets.QMainWindow):
self.ui.allowWifiApplyingChk.toggled.connect(self.on_allowWifiApplyingChk_toggled)
self.ui.autoRebootChk.toggled.connect(self.on_autoRebootChk_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.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)
supervised = self.settings.value("supervised", False, type=bool)
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.autoRebootChk.setChecked(auto_reboot)
@@ -452,7 +448,6 @@ class MainWindow(QtWidgets.QMainWindow):
self.ui.skipSetupChk.setChecked(skip_setup)
self.ui.supervisionChk.setChecked(supervised)
self.ui.supervisionOrganization.setText(organization_name)
self.ui.windowsPathFixChk.setChecked(windows_path_fix)
# hide/show the warning label
if skip_setup:
@@ -467,7 +462,6 @@ class MainWindow(QtWidgets.QMainWindow):
self.device_manager.skip_setup = skip_setup
self.device_manager.supervised = supervised
self.device_manager.organization_name = organization_name
self.device_manager.windows_path_fix = windows_path_fix
except:
pass
@@ -1086,10 +1080,6 @@ class MainWindow(QtWidgets.QMainWindow):
else:
self.ui.advancedPageBtn.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):
self.device_manager.show_all_spoofable_models = checked
# save the setting

View File

@@ -4583,6 +4583,13 @@ Will show up in Collections</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="reverseLoopChk">
<property name="text">
<string>Reverse on Loop</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_30">
<item>
@@ -5591,16 +5598,6 @@ Warning: Disabling will cause the battery to show &quot;Unknown Part&quot; or &q
</property>
</widget>
</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>
<widget class="QCheckBox" name="showAllSpoofableChk">
<property name="toolTip">

View File

@@ -2409,6 +2409,11 @@ class Ui_Nugget(object):
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.setObjectName(u"horizontalLayout_30")
self.chooseThumbBtn = QToolButton(self.pbVideoPage)
@@ -2910,12 +2915,6 @@ class Ui_Nugget(object):
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.setObjectName(u"showAllSpoofableChk")
@@ -3841,6 +3840,7 @@ class Ui_Nugget(object):
"Will show up in Collections", None))
#endif // QT_CONFIG(tooltip)
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)
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)
@@ -3893,7 +3893,6 @@ class Ui_Nugget(object):
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.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)
self.showAllSpoofableChk.setToolTip(QCoreApplication.translate("Nugget", u"Show models for other device types in the AI device spoofing tab.", None))
#endif // QT_CONFIG(tooltip)

View File

@@ -2409,6 +2409,11 @@ class Ui_Nugget(object):
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.setObjectName(u"horizontalLayout_30")
self.chooseThumbBtn = QToolButton(self.pbVideoPage)
@@ -2910,12 +2915,6 @@ class Ui_Nugget(object):
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.setObjectName(u"showAllSpoofableChk")
@@ -3841,6 +3840,7 @@ class Ui_Nugget(object):
"Will show up in Collections", None))
#endif // QT_CONFIG(tooltip)
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)
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)
@@ -3893,7 +3893,6 @@ class Ui_Nugget(object):
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.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)
self.showAllSpoofableChk.setToolTip(QCoreApplication.translate("Nugget", u"Show models for other device types in the AI device spoofing tab.", None))
#endif // QT_CONFIG(tooltip)