Skip to content

Commit 6b4c451

Browse files
committed
Countdown alert: set return count to default button when panel deactivated on time out.
1 parent c0fd5bd commit 6b4c451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Frameworks/DesktopKit/NXTCountdownAlert.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ - (void)update:(NSTimer *)timer
6565
if (countDownPeriod <= 0 || [countDownTimer isValid] == NO) {
6666
[countDownTimer invalidate];
6767
[panel orderOut:self];
68-
[NSApp stopModalWithCode:0];
68+
[NSApp stopModalWithCode:NSAlertDefaultReturn];
6969
} else {
7070
[messageView setText:[NSString stringWithFormat:messageTextFormat, countDownPeriod]];
7171
countDownPeriod--;

0 commit comments

Comments
 (0)