Skip to content

Commit

Permalink
list items in alert
Browse files Browse the repository at this point in the history
  • Loading branch information
m1337v committed Feb 27, 2024
1 parent 4816290 commit 0cae893
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions RootHide/VarCleanController.m
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,15 @@ - (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"]];
}
}
}
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:Localized(@"Confirmation")
message:Localized(@"Are you sure you want to clean selected items?")
preferredStyle:UIAlertControllerStyleAlert];
Expand Down

0 comments on commit 0cae893

Please sign in to comment.