Skip to content

Commit 9128e38

Browse files
committed
Fix reversed Cancel and Close buttons
Buttons for "Are you sure you want to close the repository?" warning were reversed. Now Cancel will leave the window, Close will close the window.
1 parent e1d6572 commit 9128e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitUp/Application/Document.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ - (BOOL)shouldCloseDocument {
874874
[alert addButtonWithTitle:NSLocalizedString(@"Close", nil)];
875875
[alert addButtonWithTitle:NSLocalizedString(@"Cancel", nil)];
876876
alert.type = kGIAlertType_Caution;
877-
if ([alert runModal] == NSAlertFirstButtonReturn) {
877+
if ([alert runModal] == NSAlertSecondButtonReturn) {
878878
return NO;
879879
}
880880
_abortIndexing = YES;

0 commit comments

Comments
 (0)