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:
Solly Ross 2017-02-26 16:55:24 -05:00
parent b4ff032e20
commit e6a8eb15ca
1 changed files with 2 additions and 0 deletions

View File

@ -1685,10 +1685,12 @@ const UI = {
},
updateLocalCursor: function() {
if (!UI.rfb) return;
UI.rfb.set_local_cursor(UI.getSetting('cursor'));
},
updateViewOnly: function() {
if (!UI.rfb) return;
UI.rfb.set_view_only(UI.getSetting('view_only'));
},