<para>Move the "With Rename" button to the default position.</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>
+ <guilabel>Permit duplicates in Collections</guilabel>
+ </term>
+ <listitem>
+ <para>If this option is set, an image can be inserted into a Collection any number of times.</para>
+ </listitem>
+ </varlistentry>
<varlistentry>
<term>
<guilabel>Open Collections on top</guilabel>
{
CollectInfo *ci;
- if (g_hash_table_lookup(cd->existence, fd->path)) return nullptr;
+ if (!options->collections_duplicates)
+ {
+ if (g_hash_table_lookup(cd->existence, fd->path)) return nullptr;
+ }
ci = collection_info_new(fd, st, nullptr);
if (ci) g_hash_table_insert(cd->existence, fd->path, g_strdup(""));
options->appimage_notifications = TRUE;
options->marks_save = TRUE;
options->with_rename = FALSE;
+ options->collections_duplicates = FALSE;
options->collections_on_top = FALSE;
options->hide_window_in_fullscreen = TRUE;
gboolean appimage_notifications;
gboolean with_rename;
+ gboolean collections_duplicates;
gboolean collections_on_top;
gboolean hide_window_in_fullscreen;
options->marks_save = c_options->marks_save;
options->with_rename = c_options->with_rename;
+ options->collections_duplicates = c_options->collections_duplicates;
options->collections_on_top = c_options->collections_on_top;
options->hide_window_in_fullscreen = c_options->hide_window_in_fullscreen;
config_entry_to_option(help_search_engine_entry, &options->help_search_engine, nullptr);
options->with_rename, &c_options->with_rename);
gtk_widget_set_tooltip_text(with_rename,"Change the default button for Copy/Move dialogs");
+ collections_on_top = pref_checkbox_new_int(group, _("Permit duplicates in Collections"),
+ options->collections_duplicates, &c_options->collections_duplicates);
+ gtk_widget_set_tooltip_text(collections_on_top,"Allow the same image to be in a Collection more than once");
+
collections_on_top = pref_checkbox_new_int(group, _("Open collections on top"),
options->collections_on_top, &c_options->collections_on_top);
gtk_widget_set_tooltip_text(collections_on_top,"Open collections window on top");
WRITE_NL(); WRITE_CHAR(*options, external_preview.extract);
WRITE_NL(); WRITE_BOOL(*options, with_rename);
+ WRITE_NL(); WRITE_BOOL(*options, collections_duplicates);
WRITE_NL(); WRITE_BOOL(*options, collections_on_top);
WRITE_NL(); WRITE_BOOL(*options, hide_window_in_fullscreen);
if (READ_CHAR(*options, external_preview.select)) continue;
if (READ_CHAR(*options, external_preview.extract)) continue;
+ if (READ_BOOL(*options, collections_duplicates)) continue;
if (READ_BOOL(*options, collections_on_top)) continue;
if (READ_BOOL(*options, hide_window_in_fullscreen)) continue;