1
0
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:
Tin Švagelj 2024-04-19 15:28:36 +00:00 committed by GitHub
parent 49be2177af
commit c7df9c092e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;