From aa90547519558304b24888a33f35b049b703340b Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Mon, 23 Jan 2017 12:15:09 +0100 Subject: [PATCH] Add UI wrapper for Webutil.init_logging --- app/ui.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/ui.js b/app/ui.js index 284b940f..7269bc3e 100644 --- a/app/ui.js +++ b/app/ui.js @@ -191,7 +191,7 @@ var UI; // Settings with immediate effects UI.initSetting('logging', 'warn'); - WebUtil.init_logging(UI.getSetting('logging')); + UI.updateLogging(); // if port == 80 (or 443) then it won't be present and should be // set manually @@ -868,7 +868,7 @@ var UI; UI.saveSetting('reconnect_delay'); // Settings with immediate (non-connected related) effect - WebUtil.init_logging(UI.getSetting('logging')); + UI.updateLogging(); UI.updateViewClip(); UI.updateViewDrag(); //Util.Debug("<< settingsApply"); @@ -1701,6 +1701,10 @@ var UI; } }, + updateLogging: function() { + WebUtil.init_logging(UI.getSetting('logging')); + }, + updateSessionSize: function(rfb, width, height) { UI.updateViewClip(); UI.updateViewDrag();