Keep the connect panel when missing host or port

This commit is contained in:
Samuel Mannehed 2016-10-01 00:00:49 +02:00
parent 74a4a2b468
commit 4102b71c33
1 changed files with 2 additions and 2 deletions

View File

@ -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'));