fix: crash on macOS dialog after window-all-closed
(#46927)
fix: crash on dialog after window-all-closed
This commit is contained in:
parent
a5ec3f7476
commit
206544cbc0
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ void SwizzleSwipeWithEvent(NSView* view, SEL swiz_selector) {
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSRect)contentRectForFrameRect:(NSRect)frameRect {
|
- (NSRect)contentRectForFrameRect:(NSRect)frameRect {
|
||||||
if (shell_->has_frame())
|
if (shell_ && shell_->has_frame())
|
||||||
return [super contentRectForFrameRect:frameRect];
|
return [super contentRectForFrameRect:frameRect];
|
||||||
else
|
else
|
||||||
return frameRect;
|
return frameRect;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue