diff options
Diffstat (limited to 'static')
| -rw-r--r-- | static/modules/windows.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/modules/windows.js b/static/modules/windows.js index d9f388e..0657a16 100644 --- a/static/modules/windows.js +++ b/static/modules/windows.js @@ -166,11 +166,11 @@ export default { }, // A window that was not there on the last poll brings the tab forward for - // [windows] peek seconds. + // [windows] peek seconds; a dialog of an app already open does not. peek(st) { if (!st.windows) return false; const ids = new Set(st.windows.map((w) => w.id)); - const fresh = this._ids != null && [...ids].some((id) => !this._ids.has(id)); + const fresh = this._ids != null && st.windows.some((w) => !w.dialog && !this._ids.has(w.id)); this._ids = ids; return fresh ? st.peek ?? 8 : 0; }, |
