From c91ab8403aa058f23fc8d1cc34e5c83cf86dfc97 Mon Sep 17 00:00:00 2001 From: Brandon Plank <52553007+brandonplank@users.noreply.github.com> Date: Wed, 7 Jul 2021 21:13:23 -0400 Subject: [PATCH] Add the ability to exit the loop This was annoying me so yeah. --- Ramiel/RamielView.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Ramiel/RamielView.m b/Ramiel/RamielView.m index 5f089e9..396ef05 100644 --- a/Ramiel/RamielView.m +++ b/Ramiel/RamielView.m @@ -452,6 +452,7 @@ - (IBAction)startBootProcess:(NSButton *)sender { @"Please enter it now.", [userDevice getModel]]]; [pwnNotice addButtonWithTitle:@"Run checkm8"]; + [pwnNotice addButtonWithTitle:@"Cancel"]; pwnNotice.window.titlebarAppearsTransparent = true; NSModalResponse choice = [pwnNotice runModal]; if (choice == NSAlertFirstButtonReturn) { @@ -468,6 +469,14 @@ - (IBAction)startBootProcess:(NSButton *)sender { } break; } + } else if (choice == NSAlertSecondButtonReturn){ + stopBackground = 0; + [self->_bootButton setHidden:FALSE]; + [self->_bootButton setEnabled:TRUE]; + [self->_settingsButton setHidden:FALSE]; + [self->_settingsButton setEnabled:TRUE]; + [pwnNotice.window orderOut:self]; + [pwnNotice.window close]; } } }