reset mercury wallpapers

This commit is contained in:
leminlimez
2025-03-25 12:24:06 -04:00
parent eb2069a633
commit 9834067840
2 changed files with 13 additions and 9 deletions

View File

@@ -18,8 +18,8 @@ from tweaks.tweaks import tweaks
from tweaks.custom_gestalt_tweaks import CustomGestaltTweaks, ValueTypeStrings
from tweaks.daemons_tweak import Daemon
App_Version = "5.0"
App_Build = 0
App_Version = "5.0.1"
App_Build = 1
class Page(Enum):
Home = 0

View File

@@ -157,15 +157,19 @@ class PosterboardTweak(Tweak):
return
if self.resetting:
# null out the folder
file_path = ""
file_paths = []
if self.resetType == 0:
# resetting descriptors
file_path = "/61/Extensions/com.apple.WallpaperKit.CollectionsPoster/descriptors"
files_to_restore.append(FileToRestore(
contents=b"",
restore_path=f"/Library/Application Support/PRBPosterExtensionDataStore{file_path}",
domain=f"AppDomain-{self.bundle_id}"
))
file_paths.append("/61/Extensions/com.apple.WallpaperKit.CollectionsPoster/descriptors")
file_paths.append("/61/Extensions/com.apple.MercuryPoster/descriptors")
else:
file_paths.append("")
for file_path in file_paths:
files_to_restore.append(FileToRestore(
contents=b"",
restore_path=f"/Library/Application Support/PRBPosterExtensionDataStore{file_path}",
domain=f"AppDomain-{self.bundle_id}"
))
return
elif self.tendies == None or len(self.tendies) == 0:
return