include domains in sorting

This commit is contained in:
leminlimez
2025-03-29 23:59:15 -04:00
parent feed63dc87
commit c767c80508
2 changed files with 4 additions and 4 deletions

View File

@@ -82,14 +82,14 @@ def concat_regular_file(file: FileToRestore, files_list: list[FileToRestore], la
return new_last_domain, full_path
# files is a list of FileToRestore objects
def restore_files(files: list, reboot: bool = False, lockdown_client: LockdownClient = None):
def restore_files(files: list[FileToRestore], reboot: bool = False, lockdown_client: LockdownClient = None):
# create the files to be backed up
files_list = [
]
apps_list = []
active_bundle_ids = []
apps = None
sorted_files = sorted(files, key=lambda x: x.restore_path, reverse=False)
sorted_files = sorted(files, key=lambda x: (x.domain, x.restore_path), reverse=False)
# add the file paths
last_domain = ""
last_path = ""

View File

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