From 75aa3ddd597288ad499b1d1f9299f37331f07c66 Mon Sep 17 00:00:00 2001 From: m1337v Date: Tue, 27 Feb 2024 02:06:10 +0100 Subject: [PATCH] add path --- RootHide/VarCleanController.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/RootHide/VarCleanController.m b/RootHide/VarCleanController.m index 1fe118b..ccda415 100644 --- a/RootHide/VarCleanController.m +++ b/RootHide/VarCleanController.m @@ -220,13 +220,14 @@ - (BOOL)checkFileInList:(NSString *)fileName List:(NSArray*)list { - (void)varClean { NSMutableString *deletionList = [NSMutableString stringWithString:Localized(@"You are about to delete the following items:\n")]; - for (NSDictionary* group in self.tableData) { - for (NSDictionary* item in group[@"items"]) { - if ([item[@"checked"] boolValue]) { - [deletionList appendFormat:@"%@\n", item[@"name"]]; - } + for (NSDictionary* group in self.tableData) { + for (NSDictionary* item in group[@"items"]) { + if ([item[@"checked"] boolValue]) { + [deletionList appendFormat:@"%@/%@\n", item[@"path"], item[@"name"]]; } } + } + NSString *alertMessage = [NSString stringWithFormat:@"%@\n%@", Localized(@"Are you sure you want to clean selected items?"), deletionList]; UIAlertController *alertController = [UIAlertController alertControllerWithTitle:Localized(@"Confirmation") message:alertMessage