Skip to content

Commit

Permalink
add path
Browse files Browse the repository at this point in the history
  • Loading branch information
m1337v committed Feb 27, 2024
1 parent 507c547 commit 75aa3dd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions RootHide/VarCleanController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75aa3dd

Please sign in to comment.