aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-02-13 12:47:35 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-02-13 13:18:36 +0100
commit4302ec71f2ba8fcc7ede7b403aa41eef4529e97f (patch)
treeb24bfda2906fe7c0b3fdc79e970d3fe11871e269
parentee5f63e50b1eeeac7ffafd755b249b3a056bd34c (diff)
downloadfiv-4302ec71f2ba8fcc7ede7b403aa41eef4529e97f.tar.gz
fiv-4302ec71f2ba8fcc7ede7b403aa41eef4529e97f.tar.xz
fiv-4302ec71f2ba8fcc7ede7b403aa41eef4529e97f.zip
Make changing the browser zoom launch thumbnailers
-rw-r--r--fiv-browser.c3
1 files changed, 3 insertions, 0 deletions
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]);