From 60a4541a0222c395ea4ee8dfa4deff58e8d8e653 Mon Sep 17 00:00:00 2001 From: leminlimez <59540996+leminlimez@users.noreply.github.com> Date: Sun, 30 Mar 2025 17:17:24 -0400 Subject: [PATCH] remove windows path fix option --- devicemanagement/device_manager.py | 1 - gui/main_window.py | 10 ---------- qt/mainwindow.ui | 17 +++++++---------- qt/mainwindow_ui.py | 13 ++++++------- qt/ui_mainwindow.py | 13 ++++++------- 5 files changed, 19 insertions(+), 35 deletions(-) diff --git a/devicemanagement/device_manager.py b/devicemanagement/device_manager.py index 80f8d72..6927469 100644 --- a/devicemanagement/device_manager.py +++ b/devicemanagement/device_manager.py @@ -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 diff --git a/gui/main_window.py b/gui/main_window.py index af523f6..319e3ad 100644 --- a/gui/main_window.py +++ b/gui/main_window.py @@ -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 diff --git a/qt/mainwindow.ui b/qt/mainwindow.ui index 7c89751..429ea48 100644 --- a/qt/mainwindow.ui +++ b/qt/mainwindow.ui @@ -4583,6 +4583,13 @@ Will show up in Collections + + + + Reverse on Loop + + + @@ -5591,16 +5598,6 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q - - - - Use Windows Path Fix (for Posterboard) - - - true - - - diff --git a/qt/mainwindow_ui.py b/qt/mainwindow_ui.py index c8bd7e5..1f26111 100644 --- a/qt/mainwindow_ui.py +++ b/qt/mainwindow_ui.py @@ -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) diff --git a/qt/ui_mainwindow.py b/qt/ui_mainwindow.py index dd9c7cf..7b55442 100644 --- a/qt/ui_mainwindow.py +++ b/qt/ui_mainwindow.py @@ -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)