Skip to content

Commit

Permalink
gallery: Fix reload action
Browse files Browse the repository at this point in the history
Resets loader on reload request.
Resolves #174.

Signed-off-by: Artem Senichev <[email protected]>
  • Loading branch information
artemsen committed Aug 5, 2024
1 parent d7040e0 commit 4ed5939
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gallery.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ static void on_keyboard(xkb_keysym_t key, uint8_t mods)
break;
case action_reload:
reset_thumbnails();
fixup_position();
break;
case action_exec:
app_execute(action->params, image_list_get(ctx.selected));
Expand Down Expand Up @@ -575,6 +576,7 @@ void gallery_handle(const struct event* event)
switch (event->type) {
case event_reload:
reset_thumbnails();
fixup_position();
break;
case event_redraw:
redraw();
Expand Down

0 comments on commit 4ed5939

Please sign in to comment.