From 4102b71c335ed48071d897426fe619e16aa1fba1 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Sat, 1 Oct 2016 00:00:49 +0200 Subject: [PATCH] Keep the connect panel when missing host or port --- app/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'));