Clear UI.connected state variable right away
Keeping it set for the disconnecting state was causing an issue where the controlbar could be hidden without any way to open it, when a session disconnects too quickly.
This commit is contained in:
parent
d8ff7c9ed6
commit
d062074b5a
|
@ -433,11 +433,11 @@ var UI;
|
|||
UI.showStatus(msg);
|
||||
break;
|
||||
case 'disconnecting':
|
||||
UI.connected = false;
|
||||
document.getElementById("noVNC_transition_text").innerHTML = _("Disconnecting...");
|
||||
document.documentElement.classList.add("noVNC_disconnecting");
|
||||
break;
|
||||
case 'disconnected':
|
||||
UI.connected = false;
|
||||
UI.showStatus(_("Disconnected"));
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue