fully ensure the browser view gets removed

This commit is contained in:
Ell 2022-03-21 15:03:37 +01:00
parent c90f4ac55d
commit 2ea3617af3

View file

@ -118,7 +118,8 @@ class KeepView extends ItemView {
hide() {
if (this.visible) {
remote.BrowserWindow.getFocusedWindow().removeBrowserView(this.keep);
for (let window of remote.BrowserWindow.getAllWindows())
window.removeBrowserView(this.keep);
this.visible = false;
}
}