mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 02:25:09 +00:00
Fix imlib_cache_size_setting::lua_setter (#1843)
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
This commit is contained in:
parent
49be2177af
commit
c7df9c092e
@ -70,7 +70,10 @@ void imlib_cache_size_setting::lua_setter(lua::state &l, bool init) {
|
||||
|
||||
Base::lua_setter(l, init);
|
||||
|
||||
if (display == nullptr || window.visual == nullptr) return;
|
||||
if (display == nullptr || window.visual == nullptr) {
|
||||
++s;
|
||||
return;
|
||||
}
|
||||
|
||||
if (init && out_to_x.get(l)) {
|
||||
image_list_start = image_list_end = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user