fix: the parent window remained interactive after the modal window was opened (#48770)

fix: fix the issue where the parent window remained interactive after the modal window was opened in somecases.
This commit is contained in:
BILL SHEN
2025-11-10 19:06:28 +08:00
committed by GitHub
parent 87d1ff59cb
commit 068ac3c405
3 changed files with 5 additions and 2 deletions

View File

@@ -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} {