From e6a8eb15ca05823c17f0414f4a6a0fcff33c7879 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Sun, 26 Feb 2017 16:55:24 -0500 Subject: [PATCH] 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. --- app/ui.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/ui.js b/app/ui.js index d72f34dd..d59204c8 100644 --- a/app/ui.js +++ b/app/ui.js @@ -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')); },