fix: dialog fails to show after modal close (#22858)
This commit is contained in:
parent
c085d3bf12
commit
b14608c2c1
3 changed files with 25 additions and 18 deletions
|
@ -192,6 +192,10 @@ bool ScopedDisableResize::disable_resize_ = false;
|
|||
return;
|
||||
}
|
||||
[self close];
|
||||
} else if (shell_->is_modal() && shell_->parent() && shell_->IsVisible()) {
|
||||
// We don't want to actually call [window close] here since
|
||||
// we've already called endSheet on the modal sheet.
|
||||
return;
|
||||
} else {
|
||||
[super performClose:sender];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue