From 4302ec71f2ba8fcc7ede7b403aa41eef4529e97f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sun, 13 Feb 2022 12:47:35 +0100 Subject: Make changing the browser zoom launch thumbnailers --- fiv-browser.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fiv-browser.c') diff --git a/fiv-browser.c b/fiv-browser.c index 4b438ab..0f05e84 100644 --- a/fiv-browser.c +++ b/fiv-browser.c @@ -604,6 +604,8 @@ static void thumbnailers_start(FivBrowser *self) { thumbnailers_abort(self); + if (!self->model) + return; // TODO(p): Leave out all paths containing .cache/thumbnails altogether. gchar *thumbnails_dir = fiv_thumbnail_get_root(); @@ -909,6 +911,7 @@ set_item_size(FivBrowser *self, FivThumbnailSize size) self->item_size = size; self->item_height = fiv_thumbnail_sizes[self->item_size].size; reload_thumbnails(self); + thumbnailers_start(self); g_object_notify_by_pspec( G_OBJECT(self), browser_properties[PROP_THUMBNAIL_SIZE]); -- cgit v1.2.3-70-g09d2