Only apply settings with an RFB object
We should only apply settings if we have an RFB object available. Some of the settings handlers didn't respect this, but do now.
This commit is contained in:
parent
b4ff032e20
commit
e6a8eb15ca
|
@ -1685,10 +1685,12 @@ const UI = {
|
||||||
},
|
},
|
||||||
|
|
||||||
updateLocalCursor: function() {
|
updateLocalCursor: function() {
|
||||||
|
if (!UI.rfb) return;
|
||||||
UI.rfb.set_local_cursor(UI.getSetting('cursor'));
|
UI.rfb.set_local_cursor(UI.getSetting('cursor'));
|
||||||
},
|
},
|
||||||
|
|
||||||
updateViewOnly: function() {
|
updateViewOnly: function() {
|
||||||
|
if (!UI.rfb) return;
|
||||||
UI.rfb.set_view_only(UI.getSetting('view_only'));
|
UI.rfb.set_view_only(UI.getSetting('view_only'));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue