policy-node.lua: apply policy settings live
Also change the setting names as per nomenclature.
This commit is contained in:

committed by
Julian Bouzas

parent
d28d7d4278
commit
4dd8dd6ce5
@@ -14,6 +14,12 @@ local cutils = require ("common-utils")
|
||||
|
||||
local move = Settings.parse_boolean_safe ("default-policy-move", false)
|
||||
|
||||
function settingsChangedCallback (_, setting, _)
|
||||
move = Settings.parse_boolean_safe ("policy.default.move", move)
|
||||
end
|
||||
|
||||
Settings.subscribe ("policy.default.move", settingsChangedCallback)
|
||||
|
||||
function parseBool (var)
|
||||
return cutils.parseBool (var)
|
||||
end
|
||||
|
Reference in New Issue
Block a user