changeset 2780:ac13b5e03475

Bug fix: Create thumbnails maintenance option In the Cache Maintenance dialog, Create Thumbnails is always enable. If thumbnail creation is disabled in Preferences/General, thumbnails are still created, but sometimes in the wrong folder. This commit disables Create Thumbnails in the maintenance dialog when when thumbnail creation is disabled in Preferences.
author Colin Clark <colin.clark@cclark.uk>
date Sun, 24 Jun 2018 14:43:35 +0100
parents 8f5619f89197
children ab37d181bc4f
files src/cache_maint.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cache_maint.c	Sun Jun 24 11:50:22 2018 +0100
+++ b/src/cache_maint.c	Sun Jun 24 14:43:35 2018 +0100
@@ -1261,6 +1261,7 @@
 				   G_CALLBACK(cache_manager_render_cb), cache_manager);
 	gtk_size_group_add_widget(sizegroup, button);
 	pref_table_label(table, 1, 1, _("Render thumbnails for a specific folder."), 0.0);
+	gtk_widget_set_sensitive(group, options->thumbnails.enable_caching);
 
 	group = pref_group_new(gd->vbox, FALSE, _("Metadata"), GTK_ORIENTATION_VERTICAL);