Refactor ZenGlanceManager.mjs to prevent opening multiple glances when animation is in progress or there is no current browser

Refactor ZenWorkspaces.mjs to update the save dialog with a randomly selected icon
This commit is contained in:
mr. M 2024-10-30 13:44:29 +01:00
parent 5eb4fb0d0d
commit 5daa3ffa53
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
2 changed files with 17 additions and 1 deletions

View file

@ -136,7 +136,7 @@
}
closeGlance({ noAnimation = false } = {}) {
if (this.#animating) {
if (this.#animating || !this.#currentBrowser) {
return;
}