mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
ability to disable windows path fix
This commit is contained in:
@@ -56,6 +56,7 @@ class DeviceManager:
|
||||
self.apply_over_wifi = False
|
||||
self.auto_reboot = True
|
||||
self.allow_risky_tweaks = False
|
||||
self.windows_path_fix = True
|
||||
self.show_all_spoofable_models = False
|
||||
self.skip_setup = True
|
||||
self.supervised = False
|
||||
@@ -329,7 +330,10 @@ class DeviceManager:
|
||||
uses_domains = True
|
||||
elif isinstance(tweak, PosterboardTweak):
|
||||
tmp_pb_dir = TemporaryDirectory()
|
||||
tweak.apply_tweak(files_to_restore=files_to_restore, output_dir=tmp_pb_dir.name)
|
||||
tweak.apply_tweak(
|
||||
files_to_restore=files_to_restore, output_dir=tmp_pb_dir.name,
|
||||
windows_path_fix=self.windows_path_fix
|
||||
)
|
||||
else:
|
||||
if gestalt_plist != None:
|
||||
gestalt_plist = tweak.apply_tweak(gestalt_plist)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from PySide6 import QtCore, QtWidgets, QtGui
|
||||
from enum import Enum
|
||||
from os import name as os_name
|
||||
import webbrowser
|
||||
import plistlib
|
||||
|
||||
@@ -183,6 +184,11 @@ 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
|
||||
if os_name == "nt":
|
||||
self.ui.windowsPathFixChk.toggled.connect(self.on_windowsPathFixChk_toggled)
|
||||
else:
|
||||
self.ui.windowsPathFixChk.hide()
|
||||
self.ui.showAllSpoofableChk.toggled.connect(self.on_showAllSpoofableChk_toggled)
|
||||
|
||||
self.ui.revertRdarChk.toggled.connect(self.on_revertRdarChk_toggled)
|
||||
@@ -1013,6 +1019,10 @@ 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
|
||||
|
||||
104
qt/mainwindow.ui
104
qt/mainwindow.ui
@@ -243,7 +243,7 @@ QSlider::tick:horizontal {
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/phone.svg</normaloff>:/icon/phone.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -308,7 +308,7 @@ QSlider::tick:horizontal {
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/arrow-clockwise.svg</normaloff>:/icon/arrow-clockwise.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -415,7 +415,7 @@ QSlider::tick:horizontal {
|
||||
<string> Home</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/house.svg</normaloff>:/icon/house.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -462,7 +462,7 @@ QSlider::tick:horizontal {
|
||||
<string> Mobile Gestalt</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/iphone-island.svg</normaloff>:/icon/iphone-island.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -506,7 +506,7 @@ QSlider::tick:horizontal {
|
||||
<string> Feature Flags</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/flag.svg</normaloff>:/icon/flag.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -535,7 +535,7 @@ QSlider::tick:horizontal {
|
||||
<string> Eligibility</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/geo-alt.svg</normaloff>:/icon/geo-alt.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -564,7 +564,7 @@ QSlider::tick:horizontal {
|
||||
<string> Springboard Options</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/app-indicator.svg</normaloff>:/icon/app-indicator.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -593,7 +593,7 @@ QSlider::tick:horizontal {
|
||||
<string> Internal Options</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/hdd.svg</normaloff>:/icon/hdd.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -625,7 +625,7 @@ QSlider::tick:horizontal {
|
||||
<string> Daemons</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/toggles.svg</normaloff>:/icon/toggles.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -657,7 +657,7 @@ QSlider::tick:horizontal {
|
||||
<string> Posterboard</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/wallpaper.svg</normaloff>:/icon/wallpaper.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -686,7 +686,7 @@ QSlider::tick:horizontal {
|
||||
<string> Risky Options</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/star.svg</normaloff>:/icon/star.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -730,7 +730,7 @@ QSlider::tick:horizontal {
|
||||
<string> Apply</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/check-circle.svg</normaloff>:/icon/check-circle.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -759,7 +759,7 @@ QSlider::tick:horizontal {
|
||||
<string> Settings</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/gear.svg</normaloff>:/icon/gear.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -873,7 +873,7 @@ QSlider::tick:horizontal {
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/phone.svg</normaloff>:/icon/phone.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -1002,7 +1002,7 @@ QSlider::tick:horizontal {
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/credits/big_nugget.png</normaloff>:/credits/big_nugget.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -1089,7 +1089,7 @@ QSlider::tick:horizontal {
|
||||
<string> Join the Discord</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/discord.svg</normaloff>:/icon/discord.svg</iconset>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
@@ -1103,7 +1103,7 @@ QSlider::tick:horizontal {
|
||||
<string> Star on Github</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/star.svg</normaloff>:/icon/star.svg</iconset>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
@@ -1207,7 +1207,7 @@ QSlider::tick:horizontal {
|
||||
<string> LeminLimez</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/credits/LeminLimez.png</normaloff>:/credits/LeminLimez.png</iconset>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
@@ -1234,7 +1234,7 @@ QToolButton:pressed {
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/twitter.svg</normaloff>:/icon/twitter.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -1258,7 +1258,7 @@ QToolButton:pressed {
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/github.svg</normaloff>:/icon/github.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -1283,7 +1283,7 @@ QToolButton:pressed {
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/currency-dollar.svg</normaloff>:/icon/currency-dollar.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -1683,7 +1683,7 @@ QToolButton:pressed {
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/iphone-island.svg</normaloff>:/icon/iphone-island.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -2221,7 +2221,7 @@ Note: OTA updates will be broken until this is disabled.</string>
|
||||
<string> Add Key</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/plus.svg</normaloff>:/icon/plus.svg</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
@@ -2338,7 +2338,7 @@ what you are doing.</string>
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/flag.svg</normaloff>:/icon/flag.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -2570,7 +2570,7 @@ Only works on iOS 18.0 beta 1-2.</string>
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/geo-alt.svg</normaloff>:/icon/geo-alt.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -3210,7 +3210,7 @@ QComboBox QAbstractItemView::item:hover {
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/app-indicator.svg</normaloff>:/icon/app-indicator.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -3462,7 +3462,7 @@ QComboBox QAbstractItemView::item:hover {
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/hdd.svg</normaloff>:/icon/hdd.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -3785,7 +3785,7 @@ QComboBox QAbstractItemView::item:hover {
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/toggles.svg</normaloff>:/icon/toggles.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -4144,7 +4144,7 @@ To work properly, also disable the daemon using the toggle above.</string>
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/wallpaper.svg</normaloff>:/icon/wallpaper.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -4209,7 +4209,7 @@ To work properly, also disable the daemon using the toggle above.</string>
|
||||
<string> Find Wallpapers</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/globe.svg</normaloff>:/icon/globe.svg</iconset>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
@@ -4235,7 +4235,7 @@ To work properly, also disable the daemon using the toggle above.</string>
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/questionmark.circle.svg</normaloff>:/icon/questionmark.circle.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -4312,7 +4312,7 @@ To work properly, also disable the daemon using the toggle above.</string>
|
||||
<string> Import Files (.tendies)</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/import.svg</normaloff>:/icon/import.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -4393,7 +4393,7 @@ To work properly, also disable the daemon using the toggle above.</string>
|
||||
<string> Clear Collections Wallpapers</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/arrow.clockwise.svg</normaloff>:/icon/arrow.clockwise.svg</iconset>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
@@ -4412,7 +4412,7 @@ Warning: This will remove all of your wallpapers and will restrict you from addi
|
||||
<string> Remove All Wallpapers</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/arrow.clockwise.svg</normaloff>:/icon/arrow.clockwise.svg</iconset>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
@@ -4487,7 +4487,7 @@ Warning: This will remove all of your wallpapers and will restrict you from addi
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/star.svg</normaloff>:/icon/star.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -4870,7 +4870,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/check-circle.svg</normaloff>:/icon/check-circle.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -4994,7 +4994,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
<string> Choose Gestalt File</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/folder.svg</normaloff>:/icon/folder.svg</iconset>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
@@ -5025,7 +5025,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
<string> Apply Changes</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/check-circle.svg</normaloff>:/icon/check-circle.svg</iconset>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
@@ -5207,7 +5207,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/gear.svg</normaloff>:/icon/gear.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -5344,6 +5344,16 @@ Warning: Disabling will cause the battery to show "Unknown Part" 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">
|
||||
@@ -5544,7 +5554,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/geo-alt.svg</normaloff>:/icon/geo-alt.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -5829,7 +5839,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/pencil.svg</normaloff>:/icon/pencil.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -5960,7 +5970,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
<string> Import .cowperation</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/import.svg</normaloff>:/icon/import.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -5995,7 +6005,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
<string> New Operation</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/plus.svg</normaloff>:/icon/plus.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -6076,7 +6086,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/compass.svg</normaloff>:/icon/compass.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -6212,7 +6222,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
}</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/iphone-island.svg</normaloff>:/icon/iphone-island.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -6306,7 +6316,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/folder.svg</normaloff>:/icon/folder.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -6317,7 +6327,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/icon/file-earmark-zip.svg</normaloff>:/icon/file-earmark-zip.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
|
||||
@@ -2776,6 +2776,12 @@ 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")
|
||||
|
||||
@@ -3735,6 +3741,7 @@ 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)
|
||||
|
||||
@@ -2776,6 +2776,12 @@ 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")
|
||||
|
||||
@@ -3735,6 +3741,7 @@ 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)
|
||||
|
||||
@@ -151,7 +151,7 @@ class PosterboardTweak(Tweak):
|
||||
else:
|
||||
self.recursive_add(files_to_restore, os.path.join(curr_path, folder), isAdding=False)
|
||||
|
||||
def apply_tweak(self, files_to_restore: list[FileToRestore], output_dir: str):
|
||||
def apply_tweak(self, files_to_restore: list[FileToRestore], output_dir: str, windows_path_fix: bool):
|
||||
# unzip the file
|
||||
if not self.enabled:
|
||||
return
|
||||
@@ -173,7 +173,7 @@ class PosterboardTweak(Tweak):
|
||||
return
|
||||
elif self.tendies == None or len(self.tendies) == 0:
|
||||
return
|
||||
if os.name == "nt":
|
||||
if os.name == "nt" and windows_path_fix:
|
||||
# try to get past directory name limit on windows
|
||||
output_dir = "\\\\?\\" + output_dir
|
||||
for tendie in self.tendies:
|
||||
|
||||
Reference in New Issue
Block a user