Bug fix: Create thumbnails maintenance option
authorColin Clark <colin.clark@cclark.uk>
Sun, 24 Jun 2018 13:43:35 +0000 (14:43 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sun, 24 Jun 2018 13:43:35 +0000 (14:43 +0100)
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.

src/cache_maint.c

index f30e3ff..b4cea45 100644 (file)
@@ -1261,6 +1261,7 @@ void cache_manager_show(void)
                                   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);