mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
reset mercury wallpapers
This commit is contained in:
@@ -18,8 +18,8 @@ from tweaks.tweaks import tweaks
|
|||||||
from tweaks.custom_gestalt_tweaks import CustomGestaltTweaks, ValueTypeStrings
|
from tweaks.custom_gestalt_tweaks import CustomGestaltTweaks, ValueTypeStrings
|
||||||
from tweaks.daemons_tweak import Daemon
|
from tweaks.daemons_tweak import Daemon
|
||||||
|
|
||||||
App_Version = "5.0"
|
App_Version = "5.0.1"
|
||||||
App_Build = 0
|
App_Build = 1
|
||||||
|
|
||||||
class Page(Enum):
|
class Page(Enum):
|
||||||
Home = 0
|
Home = 0
|
||||||
|
|||||||
@@ -157,15 +157,19 @@ class PosterboardTweak(Tweak):
|
|||||||
return
|
return
|
||||||
if self.resetting:
|
if self.resetting:
|
||||||
# null out the folder
|
# null out the folder
|
||||||
file_path = ""
|
file_paths = []
|
||||||
if self.resetType == 0:
|
if self.resetType == 0:
|
||||||
# resetting descriptors
|
# resetting descriptors
|
||||||
file_path = "/61/Extensions/com.apple.WallpaperKit.CollectionsPoster/descriptors"
|
file_paths.append("/61/Extensions/com.apple.WallpaperKit.CollectionsPoster/descriptors")
|
||||||
files_to_restore.append(FileToRestore(
|
file_paths.append("/61/Extensions/com.apple.MercuryPoster/descriptors")
|
||||||
contents=b"",
|
else:
|
||||||
restore_path=f"/Library/Application Support/PRBPosterExtensionDataStore{file_path}",
|
file_paths.append("")
|
||||||
domain=f"AppDomain-{self.bundle_id}"
|
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
|
return
|
||||||
elif self.tendies == None or len(self.tendies) == 0:
|
elif self.tendies == None or len(self.tendies) == 0:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user