diff --git a/app/ui.js b/app/ui.js index c77b7dd1..889ceaa5 100644 --- a/app/ui.js +++ b/app/ui.js @@ -929,8 +929,6 @@ var UI; }, connect: function() { - UI.closeAllPanels(); - var host = document.getElementById('noVNC_setting_host').value; var port = document.getElementById('noVNC_setting_port').value; var password = document.getElementById('noVNC_setting_password').value; @@ -949,6 +947,8 @@ var UI; if (!UI.initRFB()) return; + UI.closeAllPanels(); + UI.rfb.set_encrypt(UI.getSetting('encrypt')); UI.rfb.set_true_color(UI.getSetting('true_color')); UI.rfb.set_local_cursor(UI.getSetting('cursor'));