]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Don't close the control bar when disconnected
authorSamuel Mannehed <samuel@cendio.se>
Fri, 30 Sep 2016 21:57:02 +0000 (23:57 +0200)
committerSamuel Mannehed <samuel@cendio.se>
Fri, 30 Sep 2016 23:34:31 +0000 (01:34 +0200)
If you were very quick to disconnect, you could end up in a state
where the toolbar was hidden.

app/ui.js

index f84b3b7eb07718aa8dacbb0e7b1e9d88597a04a3..13c00247dc422d6110cdf4c7f6ecab856dd6db57 100644 (file)
--- a/app/ui.js
+++ b/app/ui.js
@@ -420,6 +420,7 @@ var UI;
             } else {
                 document.documentElement.classList.remove("noVNC_connected");
                 UI.updateXvpButton(0);
+                UI.keepControlbar();
             }
 
             // State change disables viewport dragging.