mirror of https://github.com/opa334/TrollStore.git
Change close buttons to `UIAlertActionStyleCancel`
This commit is contained in:
parent
9f9fd76310
commit
c1090cf790
|
@ -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);
|
||||
}];
|
||||
|
|
|
@ -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];
|
||||
}];
|
||||
|
|
Loading…
Reference in New Issue