mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: the parent window remained interactive after the modal window was opened (#48866)
fix: fix the issue where the parent window remained interactive after the modal window was opened in somecases. Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Bill Shen <15865969+cucbin@users.noreply.github.com>
This commit is contained in:
@@ -104,7 +104,8 @@ NativeWindow::NativeWindow(const gin_helper::Dictionary& options,
|
||||
transparent_{options.ValueOrDefault(options::kTransparent, false)},
|
||||
enable_larger_than_screen_{
|
||||
options.ValueOrDefault(options::kEnableLargerThanScreen, false)},
|
||||
is_modal_{parent != nullptr && options.ValueOrDefault("modal", false)},
|
||||
is_modal_{parent != nullptr &&
|
||||
options.ValueOrDefault(options::kModal, false)},
|
||||
has_frame_{options.ValueOrDefault(options::kFrame, true) &&
|
||||
title_bar_style_ == TitleBarStyle::kNormal},
|
||||
parent_{parent} {
|
||||
|
||||
Reference in New Issue
Block a user