fix: crash on macOS dialog after window-all-closed (#46952)

fix: crash on dialog after window-all-closed

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2025-05-06 17:29:14 +02:00
committed by GitHub
parent 6bd6180703
commit 3029cdb4dd

View File

@@ -218,7 +218,7 @@ void SwizzleSwipeWithEvent(NSView* view, SEL swiz_selector) {
}
- (NSRect)contentRectForFrameRect:(NSRect)frameRect {
if (shell_->has_frame())
if (shell_ && shell_->has_frame())
return [super contentRectForFrameRect:frameRect];
else
return frameRect;