Przeglądaj źródła

[Feature] Settings: Allow multiple selectors

tags/1.9.0
Vsevolod Stakhov 5 lat temu
rodzic
commit
5b78c367b9
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6
    2
      src/plugins/lua/settings.lua

+ 6
- 2
src/plugins/lua/settings.lua Wyświetl plik

@@ -356,7 +356,7 @@ local function check_settings(task)
end

if rule.selector then
res = rule.selector(task)
res = fun.all(function(s) return s(task) end, rule.selector)

if res then
matched[#matched + 1] = 'selector'
@@ -656,7 +656,11 @@ local function process_settings_table(tbl)
end

if sel then
out['selector'] = sel
if out.selector then
table.insert(out['selector'], sel)
else
out['selector'] = {sel}
end
end
end


Ładowanie…
Anuluj
Zapisz