mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
Merge branch 'main' into pb-video
This commit is contained in:
@@ -56,6 +56,7 @@ 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 = True
|
||||||
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
|
||||||
@@ -329,7 +330,12 @@ class DeviceManager:
|
|||||||
uses_domains = True
|
uses_domains = True
|
||||||
elif isinstance(tweak, PosterboardTweak):
|
elif isinstance(tweak, PosterboardTweak):
|
||||||
tmp_pb_dir = TemporaryDirectory()
|
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
|
||||||
|
)
|
||||||
|
if tweak.enabled:
|
||||||
|
uses_domains = True
|
||||||
else:
|
else:
|
||||||
if gestalt_plist != None:
|
if gestalt_plist != None:
|
||||||
gestalt_plist = tweak.apply_tweak(gestalt_plist)
|
gestalt_plist = tweak.apply_tweak(gestalt_plist)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
from PySide6 import QtCore, QtWidgets, QtGui
|
from PySide6 import QtCore, QtWidgets, QtGui
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
from os import name as os_name
|
||||||
import webbrowser
|
import webbrowser
|
||||||
import plistlib
|
import plistlib
|
||||||
|
|
||||||
@@ -191,6 +192,11 @@ 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
|
||||||
|
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.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)
|
||||||
@@ -1061,6 +1067,10 @@ 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
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ QSlider::tick:horizontal {
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/phone.svg</normaloff>:/icon/phone.svg</iconset>
|
<normaloff>:/icon/phone.svg</normaloff>:/icon/phone.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -308,7 +308,7 @@ QSlider::tick:horizontal {
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/arrow-clockwise.svg</normaloff>:/icon/arrow-clockwise.svg</iconset>
|
<normaloff>:/icon/arrow-clockwise.svg</normaloff>:/icon/arrow-clockwise.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -415,7 +415,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Home</string>
|
<string> Home</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/house.svg</normaloff>:/icon/house.svg</iconset>
|
<normaloff>:/icon/house.svg</normaloff>:/icon/house.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -462,7 +462,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Mobile Gestalt</string>
|
<string> Mobile Gestalt</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/iphone-island.svg</normaloff>:/icon/iphone-island.svg</iconset>
|
<normaloff>:/icon/iphone-island.svg</normaloff>:/icon/iphone-island.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@@ -506,7 +506,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Feature Flags</string>
|
<string> Feature Flags</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/flag.svg</normaloff>:/icon/flag.svg</iconset>
|
<normaloff>:/icon/flag.svg</normaloff>:/icon/flag.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -535,7 +535,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Eligibility</string>
|
<string> Eligibility</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/geo-alt.svg</normaloff>:/icon/geo-alt.svg</iconset>
|
<normaloff>:/icon/geo-alt.svg</normaloff>:/icon/geo-alt.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -564,7 +564,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Springboard Options</string>
|
<string> Springboard Options</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/app-indicator.svg</normaloff>:/icon/app-indicator.svg</iconset>
|
<normaloff>:/icon/app-indicator.svg</normaloff>:/icon/app-indicator.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -593,7 +593,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Internal Options</string>
|
<string> Internal Options</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/hdd.svg</normaloff>:/icon/hdd.svg</iconset>
|
<normaloff>:/icon/hdd.svg</normaloff>:/icon/hdd.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -625,7 +625,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Daemons</string>
|
<string> Daemons</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/toggles.svg</normaloff>:/icon/toggles.svg</iconset>
|
<normaloff>:/icon/toggles.svg</normaloff>:/icon/toggles.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -657,7 +657,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Posterboard</string>
|
<string> Posterboard</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/wallpaper.svg</normaloff>:/icon/wallpaper.svg</iconset>
|
<normaloff>:/icon/wallpaper.svg</normaloff>:/icon/wallpaper.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -686,7 +686,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Risky Options</string>
|
<string> Risky Options</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/star.svg</normaloff>:/icon/star.svg</iconset>
|
<normaloff>:/icon/star.svg</normaloff>:/icon/star.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -730,7 +730,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Apply</string>
|
<string> Apply</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/check-circle.svg</normaloff>:/icon/check-circle.svg</iconset>
|
<normaloff>:/icon/check-circle.svg</normaloff>:/icon/check-circle.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -759,7 +759,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Settings</string>
|
<string> Settings</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/gear.svg</normaloff>:/icon/gear.svg</iconset>
|
<normaloff>:/icon/gear.svg</normaloff>:/icon/gear.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -873,7 +873,7 @@ QSlider::tick:horizontal {
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/phone.svg</normaloff>:/icon/phone.svg</iconset>
|
<normaloff>:/icon/phone.svg</normaloff>:/icon/phone.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -1002,7 +1002,7 @@ QSlider::tick:horizontal {
|
|||||||
<string>...</string>
|
<string>...</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/credits/big_nugget.png</normaloff>:/credits/big_nugget.png</iconset>
|
<normaloff>:/credits/big_nugget.png</normaloff>:/credits/big_nugget.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@@ -1089,7 +1089,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Join the Discord</string>
|
<string> Join the Discord</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/discord.svg</normaloff>:/icon/discord.svg</iconset>
|
<normaloff>:/icon/discord.svg</normaloff>:/icon/discord.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolButtonStyle">
|
<property name="toolButtonStyle">
|
||||||
@@ -1103,7 +1103,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> Star on Github</string>
|
<string> Star on Github</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/star.svg</normaloff>:/icon/star.svg</iconset>
|
<normaloff>:/icon/star.svg</normaloff>:/icon/star.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolButtonStyle">
|
<property name="toolButtonStyle">
|
||||||
@@ -1207,7 +1207,7 @@ QSlider::tick:horizontal {
|
|||||||
<string> LeminLimez</string>
|
<string> LeminLimez</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/credits/LeminLimez.png</normaloff>:/credits/LeminLimez.png</iconset>
|
<normaloff>:/credits/LeminLimez.png</normaloff>:/credits/LeminLimez.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolButtonStyle">
|
<property name="toolButtonStyle">
|
||||||
@@ -1234,7 +1234,7 @@ QToolButton:pressed {
|
|||||||
<string>...</string>
|
<string>...</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/twitter.svg</normaloff>:/icon/twitter.svg</iconset>
|
<normaloff>:/icon/twitter.svg</normaloff>:/icon/twitter.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -1258,7 +1258,7 @@ QToolButton:pressed {
|
|||||||
<string>...</string>
|
<string>...</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/github.svg</normaloff>:/icon/github.svg</iconset>
|
<normaloff>:/icon/github.svg</normaloff>:/icon/github.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -1283,7 +1283,7 @@ QToolButton:pressed {
|
|||||||
<string>...</string>
|
<string>...</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/currency-dollar.svg</normaloff>:/icon/currency-dollar.svg</iconset>
|
<normaloff>:/icon/currency-dollar.svg</normaloff>:/icon/currency-dollar.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -1683,7 +1683,7 @@ QToolButton:pressed {
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/iphone-island.svg</normaloff>:/icon/iphone-island.svg</iconset>
|
<normaloff>:/icon/iphone-island.svg</normaloff>:/icon/iphone-island.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@@ -2221,7 +2221,7 @@ Note: OTA updates will be broken until this is disabled.</string>
|
|||||||
<string> Add Key</string>
|
<string> Add Key</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/plus.svg</normaloff>:/icon/plus.svg</iconset>
|
<normaloff>:/icon/plus.svg</normaloff>:/icon/plus.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
@@ -2338,7 +2338,7 @@ what you are doing.</string>
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/flag.svg</normaloff>:/icon/flag.svg</iconset>
|
<normaloff>:/icon/flag.svg</normaloff>:/icon/flag.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -2570,7 +2570,7 @@ Only works on iOS 18.0 beta 1-2.</string>
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/geo-alt.svg</normaloff>:/icon/geo-alt.svg</iconset>
|
<normaloff>:/icon/geo-alt.svg</normaloff>:/icon/geo-alt.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -3210,7 +3210,7 @@ QComboBox QAbstractItemView::item:hover {
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/app-indicator.svg</normaloff>:/icon/app-indicator.svg</iconset>
|
<normaloff>:/icon/app-indicator.svg</normaloff>:/icon/app-indicator.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -3462,7 +3462,7 @@ QComboBox QAbstractItemView::item:hover {
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/hdd.svg</normaloff>:/icon/hdd.svg</iconset>
|
<normaloff>:/icon/hdd.svg</normaloff>:/icon/hdd.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -3785,7 +3785,7 @@ QComboBox QAbstractItemView::item:hover {
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/toggles.svg</normaloff>:/icon/toggles.svg</iconset>
|
<normaloff>:/icon/toggles.svg</normaloff>:/icon/toggles.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -4144,7 +4144,7 @@ To work properly, also disable the daemon using the toggle above.</string>
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/wallpaper.svg</normaloff>:/icon/wallpaper.svg</iconset>
|
<normaloff>:/icon/wallpaper.svg</normaloff>:/icon/wallpaper.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -4209,7 +4209,7 @@ To work properly, also disable the daemon using the toggle above.</string>
|
|||||||
<string> Find Wallpapers</string>
|
<string> Find Wallpapers</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/globe.svg</normaloff>:/icon/globe.svg</iconset>
|
<normaloff>:/icon/globe.svg</normaloff>:/icon/globe.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolButtonStyle">
|
<property name="toolButtonStyle">
|
||||||
@@ -4235,7 +4235,7 @@ To work properly, also disable the daemon using the toggle above.</string>
|
|||||||
<string>...</string>
|
<string>...</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/questionmark.circle.svg</normaloff>:/icon/questionmark.circle.svg</iconset>
|
<normaloff>:/icon/questionmark.circle.svg</normaloff>:/icon/questionmark.circle.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@@ -4658,7 +4658,7 @@ Warning: This will remove all of your wallpapers and will restrict you from addi
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/star.svg</normaloff>:/icon/star.svg</iconset>
|
<normaloff>:/icon/star.svg</normaloff>:/icon/star.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -5041,7 +5041,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/check-circle.svg</normaloff>:/icon/check-circle.svg</iconset>
|
<normaloff>:/icon/check-circle.svg</normaloff>:/icon/check-circle.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -5165,7 +5165,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
<string> Choose Gestalt File</string>
|
<string> Choose Gestalt File</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/folder.svg</normaloff>:/icon/folder.svg</iconset>
|
<normaloff>:/icon/folder.svg</normaloff>:/icon/folder.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolButtonStyle">
|
<property name="toolButtonStyle">
|
||||||
@@ -5196,7 +5196,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
<string> Apply Changes</string>
|
<string> Apply Changes</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/check-circle.svg</normaloff>:/icon/check-circle.svg</iconset>
|
<normaloff>:/icon/check-circle.svg</normaloff>:/icon/check-circle.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolButtonStyle">
|
<property name="toolButtonStyle">
|
||||||
@@ -5378,7 +5378,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/gear.svg</normaloff>:/icon/gear.svg</iconset>
|
<normaloff>:/icon/gear.svg</normaloff>:/icon/gear.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -5515,6 +5515,16 @@ 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">
|
||||||
@@ -5715,7 +5725,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/geo-alt.svg</normaloff>:/icon/geo-alt.svg</iconset>
|
<normaloff>:/icon/geo-alt.svg</normaloff>:/icon/geo-alt.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -6000,7 +6010,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/pencil.svg</normaloff>:/icon/pencil.svg</iconset>
|
<normaloff>:/icon/pencil.svg</normaloff>:/icon/pencil.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@@ -6131,7 +6141,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
<string> Import .cowperation</string>
|
<string> Import .cowperation</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/import.svg</normaloff>:/icon/import.svg</iconset>
|
<normaloff>:/icon/import.svg</normaloff>:/icon/import.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@@ -6166,7 +6176,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
<string> New Operation</string>
|
<string> New Operation</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/plus.svg</normaloff>:/icon/plus.svg</iconset>
|
<normaloff>:/icon/plus.svg</normaloff>:/icon/plus.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@@ -6247,7 +6257,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/compass.svg</normaloff>:/icon/compass.svg</iconset>
|
<normaloff>:/icon/compass.svg</normaloff>:/icon/compass.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -6383,7 +6393,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/iphone-island.svg</normaloff>:/icon/iphone-island.svg</iconset>
|
<normaloff>:/icon/iphone-island.svg</normaloff>:/icon/iphone-island.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@@ -6477,7 +6487,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
<string>...</string>
|
<string>...</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/folder.svg</normaloff>:/icon/folder.svg</iconset>
|
<normaloff>:/icon/folder.svg</normaloff>:/icon/folder.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -6488,7 +6498,7 @@ Warning: Disabling will cause the battery to show "Unknown Part" or &q
|
|||||||
<string>...</string>
|
<string>...</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset>
|
||||||
<normaloff>:/icon/file-earmark-zip.svg</normaloff>:/icon/file-earmark-zip.svg</iconset>
|
<normaloff>:/icon/file-earmark-zip.svg</normaloff>:/icon/file-earmark-zip.svg</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
|||||||
@@ -2873,6 +2873,12 @@ 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")
|
||||||
|
|
||||||
@@ -3837,6 +3843,7 @@ 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)
|
||||||
|
|||||||
@@ -2873,6 +2873,12 @@ 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")
|
||||||
|
|
||||||
@@ -3837,6 +3843,7 @@ 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)
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ class PosterboardTweak(Tweak):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
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
|
# unzip the file
|
||||||
if not self.enabled:
|
if not self.enabled:
|
||||||
return
|
return
|
||||||
@@ -229,7 +229,7 @@ class PosterboardTweak(Tweak):
|
|||||||
return
|
return
|
||||||
elif (self.tendies == None or len(self.tendies) == 0) and (self.videoThumbnail == None or self.videoThumbnail == None):
|
elif (self.tendies == None or len(self.tendies) == 0) and (self.videoThumbnail == None or self.videoThumbnail == None):
|
||||||
return
|
return
|
||||||
if os.name == "nt":
|
if os.name == "nt" and windows_path_fix:
|
||||||
# try to get past directory name limit on windows
|
# try to get past directory name limit on windows
|
||||||
output_dir = "\\\\?\\" + output_dir
|
output_dir = "\\\\?\\" + output_dir
|
||||||
self.create_live_photo_files(output_dir)
|
self.create_live_photo_files(output_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user