diff --git a/Sparserestore/restore.py b/Sparserestore/restore.py index 6b1950b..67b8646 100644 --- a/Sparserestore/restore.py +++ b/Sparserestore/restore.py @@ -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 = "" diff --git a/gui/main_window.py b/gui/main_window.py index c63bfd8..1b87cbb 100644 --- a/gui/main_window.py +++ b/gui/main_window.py @@ -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