Change close buttons to `UIAlertActionStyleCancel`

This commit is contained in:
Dhinak G 2023-12-30 14:15:26 -05:00
parent 9f9fd76310
commit c1090cf790
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
} else if (ret == 182) {
// non-fatal informative message
UIAlertController* rebootNotification = [UIAlertController alertControllerWithTitle:@"Reboot Required" message:[error localizedDescription] preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* closeAction = [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action)
UIAlertAction* closeAction = [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleCancel handler:^(UIAlertAction* action)
{
if(completionBlock) completionBlock(YES, nil);
}];

View File

@ -408,7 +408,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
message:@"After rebooting, select \"Turn On\" to enable developer mode."
preferredStyle:UIAlertControllerStyleAlert
];
UIAlertAction* closeAction = [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action)
UIAlertAction* closeAction = [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleCancel handler:^(UIAlertAction* action)
{
[self reloadSpecifiers];
}];