mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
Merge branch 'v5.0.1' into pb-video
This commit is contained in:
@@ -194,18 +194,22 @@ 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"
|
||||
file_paths.append("/61/Extensions/com.apple.WallpaperKit.CollectionsPoster/descriptors")
|
||||
file_paths.append("/61/Extensions/com.apple.MercuryPoster/descriptors")
|
||||
elif self.resetType == 2:
|
||||
# resetting suggested photos
|
||||
file_path = "/61/Extensions/com.apple.PhotosUIPrivate.PhotosPosterProvider/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.PhotosUIPrivate.PhotosPosterProvider/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) and (self.videoThumbnail == None or self.videoThumbnail == None):
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user