From 3a6a45486dd8bf5ee3548c631ebf8a5da711fb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 7 Jul 2021 11:28:39 +0800 Subject: cleanup --- script/service/telemetry.lua | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'script/service/telemetry.lua') diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua index c45320c7..11c872ce 100644 --- a/script/service/telemetry.lua +++ b/script/service/telemetry.lua @@ -120,17 +120,23 @@ function m.updateConfig() return end if item.title == enableTitle then - client.setConfig('Lua.telemetry.enable' - , 'set' - , true - , true - ) + client.setConfig { + { + key = 'Lua.telemetry.enable', + action = 'set', + value = true, + isGlobal = true, + } + } elseif item.title == disableTitle then - client.setConfig('Lua.telemetry.enable' - , 'set' - , false - , true - ) + client.setConfig { + { + key = 'Lua.telemetry.enable', + action = 'set', + value = false, + isGlobal = true, + } + } end end) end -- cgit v1.2.3