Fix view_only setting with autoconnect (#985)
updateVisualState() and updateViewOnly() requires an initiated UI.rfb reference, the calls in connect() was made too early.
This commit is contained in:
parent
1f9d0cb12f
commit
37c609359a
|
@ -1019,10 +1019,6 @@ var UI = {
|
|||
UI.closeAllPanels();
|
||||
UI.closeConnectPanel();
|
||||
|
||||
UI.updateVisualState('connecting');
|
||||
|
||||
UI.updateViewOnly();
|
||||
|
||||
var url;
|
||||
|
||||
url = UI.getSetting('encrypt') ? 'wss' : 'ws';
|
||||
|
@ -1048,6 +1044,9 @@ var UI = {
|
|||
UI.rfb.clipViewport = UI.getSetting('view_clip');
|
||||
UI.rfb.scaleViewport = UI.getSetting('resize') === 'scale';
|
||||
UI.rfb.resizeSession = UI.getSetting('resize') === 'remote';
|
||||
|
||||
UI.updateVisualState('connecting');
|
||||
UI.updateViewOnly();
|
||||
},
|
||||
|
||||
disconnect: function() {
|
||||
|
|
Loading…
Reference in New Issue