File tree 1 file changed +7
-2
lines changed
src/plugins/core/preferences/panels/scripting
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
local require = require
6
6
7
- -- local log = require "hs.logger".new "snippets"
7
+ local log = require " hs.logger" .new " snippets"
8
8
9
9
local hs = _G .hs
10
10
@@ -371,7 +371,9 @@ function plugin.init(deps, env)
371
371
372
372
if type (v ) == " table" then
373
373
s = s .. key .. " =" .. processTable (v ) .. " ,"
374
- else
374
+ elseif type (v ) == " number" then
375
+ s = s .. key .. " =" .. v .. " ,"
376
+ elseif type (v ) == " string" then
375
377
---- ----------------------------------------------------------------------------
376
378
-- If the value contains a slash or quotes put it in brackets:
377
379
---- ----------------------------------------------------------------------------
@@ -383,6 +385,9 @@ function plugin.init(deps, env)
383
385
end
384
386
385
387
s = s .. key .. " =" .. value .. " ,"
388
+ else
389
+ log .ef (" Bug in insertAction - Unknown type: %s ('%s')" , type (v ), v )
390
+ return
386
391
end
387
392
end
388
393
if s :sub (- 1 ) == " ," then
You can’t perform that action at this time.
0 commit comments