Skip to content

Commit

Permalink
Fix imlib_cache_size_setting::lua_setter (#1843)
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
  • Loading branch information
Caellian authored Apr 19, 2024
1 parent 49be217 commit c7df9c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/conky-imlib2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c7df9c0

Please sign in to comment.