Merge pull request #1859 from psychon/beautiful_newindex
Make beautiful.foo = bar work properly
This commit is contained in:
commit
8c926027c4
|
@ -227,6 +227,10 @@ function beautiful.mt:__index(k)
|
||||||
return theme[k]
|
return theme[k]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function beautiful.mt:__newindex(k, v)
|
||||||
|
theme[k] = v
|
||||||
|
end
|
||||||
|
|
||||||
-- Set the default font
|
-- Set the default font
|
||||||
set_font("sans 8")
|
set_font("sans 8")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue