[go: nahoru, domu]

Skip to content

Commit

Permalink
Only apply settings with an RFB object
Browse files Browse the repository at this point in the history
We should only apply settings if we have an RFB object available.
Some of the settings handlers didn't respect this, but do now.
  • Loading branch information
DirectXMan12 committed Mar 21, 2017
1 parent b4ff032 commit e6a8eb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
},

Expand Down

0 comments on commit e6a8eb1

Please sign in to comment.