Skip to content

Commit

Permalink
destroy and rebuild the icon fetcher worker threadpool when the curre…
Browse files Browse the repository at this point in the history
…nt page is changed
  • Loading branch information
giomatfois62 committed Feb 20, 2024
1 parent 15e206d commit cfdcc09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/widgets/listview.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ static unsigned int scroll_per_page(listview *lv) {
(lv->max_elements > 0) ? (lv->selected / lv->max_elements) : 0;
offset = page * lv->max_elements;
if (page != lv->cur_page) {

rofi_view_workers_finalize();
rofi_view_workers_initialize();

lv->cur_page = page;
lv->rchanged = TRUE;
}
Expand Down

0 comments on commit cfdcc09

Please sign in to comment.