summaryrefslogtreecommitdiff
path: root/script/client.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/client.lua')
-rw-r--r--script/client.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/script/client.lua b/script/client.lua
index 4e4196b4..c22b59ab 100644
--- a/script/client.lua
+++ b/script/client.lua
@@ -188,14 +188,19 @@ function m.setConfig(changes, onlyMemory)
if #finalChanges == 0 then
return
end
- if m.getOption 'changeConfiguration' then
+ if m.getOption 'changeConfiguration'
+ and config.getSource() == 'client' then
proto.notify('$/command', {
command = 'lua.config',
data = finalChanges,
})
else
local messages = {}
- messages[1] = lang.script('WINDOW_CLIENT_NOT_SUPPORT_CONFIG')
+ if not m.getOption 'changeConfiguration' then
+ messages[1] = lang.script('WINDOW_CLIENT_NOT_SUPPORT_CONFIG')
+ elseif config.getSource() ~= 'client' then
+ messages[1] = lang.script('WINDOW_LCONFIG_NOT_SUPPORT_CONFIG')
+ end
for _, change in ipairs(finalChanges) do
if change.action == 'add' then
messages[#messages+1] = lang.script('WINDOW_MANUAL_CONFIG_ADD', change)