mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
include domains in sorting
This commit is contained in:
@@ -82,14 +82,14 @@ def concat_regular_file(file: FileToRestore, files_list: list[FileToRestore], la
|
|||||||
return new_last_domain, full_path
|
return new_last_domain, full_path
|
||||||
|
|
||||||
# files is a list of FileToRestore objects
|
# 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
|
# create the files to be backed up
|
||||||
files_list = [
|
files_list = [
|
||||||
]
|
]
|
||||||
apps_list = []
|
apps_list = []
|
||||||
active_bundle_ids = []
|
active_bundle_ids = []
|
||||||
apps = None
|
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
|
# add the file paths
|
||||||
last_domain = ""
|
last_domain = ""
|
||||||
last_path = ""
|
last_path = ""
|
||||||
|
|||||||
@@ -19,8 +19,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.1"
|
App_Version = "5.0.2"
|
||||||
App_Build = 0
|
App_Build = 1
|
||||||
|
|
||||||
class Page(Enum):
|
class Page(Enum):
|
||||||
Home = 0
|
Home = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user