Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6122dc

Browse files
authored
Merge pull request #21792 from anntzer/cbp
Fix missing return value in closeButtonPressed.
2 parents f091d46 + 57e320e commit f6122dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/_macosx.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,11 @@ - (NSRect)constrainFrameRect:(NSRect)rect toScreen:(NSScreen*)screen
12911291
return suggested;
12921292
}
12931293

1294-
- (BOOL)closeButtonPressed { gil_call_method(manager, "close"); }
1294+
- (BOOL)closeButtonPressed
1295+
{
1296+
gil_call_method(manager, "close");
1297+
return YES;
1298+
}
12951299

12961300
- (void)close
12971301
{

0 commit comments

Comments
 (0)