mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: revert the parent window remained interactive after the modal window was opened (#48977)
This commit is contained in:
@@ -553,7 +553,7 @@ bool NativeWindowViews::IsFocused() const {
|
||||
}
|
||||
|
||||
void NativeWindowViews::Show() {
|
||||
if (is_modal() && NativeWindow::parent())
|
||||
if (is_modal() && NativeWindow::parent() && !widget()->IsVisible())
|
||||
static_cast<NativeWindowViews*>(parent())->IncrementChildModals();
|
||||
|
||||
widget()->native_widget_private()->Show(GetRestoredState(), gfx::Rect());
|
||||
|
||||
Reference in New Issue
Block a user