`ruled.client` fixes (#3195)
* ruled.client: Fix a regression introduced when append/remove was added. * ruled.client: Fix an error message grammar.
This commit is contained in:
parent
50fa1b8679
commit
1c8b0b924d
|
@ -678,7 +678,7 @@ return setmetatable(module, {
|
||||||
__newindex = function(_, k, v)
|
__newindex = function(_, k, v)
|
||||||
if k == "rules" then
|
if k == "rules" then
|
||||||
gdebug.deprecate(
|
gdebug.deprecate(
|
||||||
"Use ruled.client.append_rules instead awful.rules.rules",
|
"Use ruled.client.append_rules instead of setting awful.rules.rules directly",
|
||||||
{deprecated_in=5}
|
{deprecated_in=5}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -694,7 +694,7 @@ return setmetatable(module, {
|
||||||
crules:append_rules("awful.rules", v)
|
crules:append_rules("awful.rules", v)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
rawset(k, v)
|
rawset(module, k, v)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
__index = function(_, k)
|
__index = function(_, k)
|
||||||
|
|
Loading…
Reference in New Issue