Add UI wrapper for Webutil.init_logging

This commit is contained in:
Samuel Mannehed 2017-01-23 12:15:09 +01:00
parent 394ad22be9
commit aa90547519
1 changed files with 6 additions and 2 deletions

View File

@ -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();