fix: removeBrowserView
draggable region removal (#39387)
fix: removeBrowserView draggable region removal Closes https://github.com/electron/electron/issues/39377.
This commit is contained in:
parent
1548a2f9fb
commit
8f4f82618c
1 changed files with 1 additions and 1 deletions
|
@ -780,8 +780,8 @@ void BaseWindow::RemoveBrowserView(gin::Handle<BrowserView> browser_view) {
|
|||
browser_view.ToV8());
|
||||
|
||||
if (iter != browser_views_.end()) {
|
||||
window_->RemoveBrowserView(browser_view->view());
|
||||
window_->RemoveDraggableRegionProvider(browser_view.get());
|
||||
window_->RemoveBrowserView(browser_view->view());
|
||||
browser_view->SetOwnerWindow(nullptr);
|
||||
iter->Reset();
|
||||
browser_views_.erase(iter);
|
||||
|
|
Loading…
Reference in a new issue