mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
fix randomizing ids errors with plist updating
This commit is contained in:
@@ -16,7 +16,7 @@ class PosterboardTweak(Tweak):
|
||||
|
||||
def update_plist_id(self, file_path: str, file_name: str, randomizedID: int):
|
||||
if file_name == "com.apple.posterkit.provider.descriptor.identifier":
|
||||
return randomizedID.to_bytes()
|
||||
return str(randomizedID).encode()
|
||||
elif file_name == "com.apple.posterkit.provider.contents.userInfo":
|
||||
return set_plist_value(file=os.path.join(file_path, file_name), key="wallpaperRepresentingIdentifier", value=randomizedID)
|
||||
elif file_name == "Wallpaper.plist":
|
||||
|
||||
Reference in New Issue
Block a user