From 76b0987f4bfb2eb2bdab2f7dd28a70045a377baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20=C5=A0vagelj?= Date: Fri, 19 Apr 2024 11:43:28 +0200 Subject: [PATCH] Fix imlib_cache_size_setting::lua_setter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tin Å vagelj --- src/conky-imlib2.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/conky-imlib2.cc b/src/conky-imlib2.cc index c898498b7..af4728448 100644 --- a/src/conky-imlib2.cc +++ b/src/conky-imlib2.cc @@ -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;