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

fix: crash on dialog after window-all-closed
This commit is contained in:
Shelley Vohr
2025-05-06 14:47:50 +02:00
committed by GitHub
parent a5ec3f7476
commit 206544cbc0

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;