From a0f3696b6d5bddcb7ae1e54fc935280beca19755 Mon Sep 17 00:00:00 2001 From: Sergios - Anestis Kefalidis Date: Mon, 2 Aug 2021 20:55:53 +0300 Subject: Fix thumbnail display when the maximum size is set to unlimited --- thunar/thunar-icon-factory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thunar') diff --git a/thunar/thunar-icon-factory.c b/thunar/thunar-icon-factory.c index 3de10105..a566d0ce 100644 --- a/thunar/thunar-icon-factory.c +++ b/thunar/thunar-icon-factory.c @@ -988,7 +988,7 @@ thunar_icon_factory_load_file_icon (ThunarIconFactory *factory, } else { - if (thunar_file_get_size (file) < factory->thumbnail_max_file_size) + if (thunar_file_get_size (file) < factory->thumbnail_max_file_size || factory->thumbnail_max_file_size == 0) /* 0 = unlimited */ { /* we have no preview icon but the thumbnail should be ready. determine * the filename of the thumbnail */ -- cgit v1.2.1