mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-11-22 09:43:30 +01:00
fully ensure the browser view gets removed
This commit is contained in:
parent
c90f4ac55d
commit
2ea3617af3
1 changed files with 2 additions and 1 deletions
3
main.ts
3
main.ts
|
@ -118,7 +118,8 @@ class KeepView extends ItemView {
|
||||||
|
|
||||||
hide() {
|
hide() {
|
||||||
if (this.visible) {
|
if (this.visible) {
|
||||||
remote.BrowserWindow.getFocusedWindow().removeBrowserView(this.keep);
|
for (let window of remote.BrowserWindow.getAllWindows())
|
||||||
|
window.removeBrowserView(this.keep);
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue