diff options
author | John Stebbins <[email protected]> | 2017-12-20 09:53:43 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-12-20 09:53:43 -0800 |
commit | ad5ec4705201d3905846a5c81955e48f990658a0 (patch) | |
tree | 50146316a6c6ead11f0cdd7be419d6d9a2a99d0c /gtk/src/queuehandler.c | |
parent | 16077a9128d5c03be1fec5330c4b859af1d0bd23 (diff) |
LinGui: remove "Reset All Titles" button
Replace with a preference option that synchronizes all title settings by
default. This makes the linux gui behaviour consistant with the other
guis by default. Titles can have independent settings by unchecking the
preference option.
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r-- | gtk/src/queuehandler.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index 09c6e74e4..5778ee486 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -1837,9 +1837,15 @@ queue_add_all_action_cb(GSimpleAction *action, GVariant *param, GtkWidget *row; gint count, ii; int max_title_len = 0; + GhbValue * preset = NULL; list = GTK_LIST_BOX(GHB_WIDGET(ud->builder, "title_add_multiple_list")); + if (ghb_dict_get_bool(ud->prefs, "SyncTitleSettings")) + { + preset = ghb_settings_to_preset(ud->settings); + } + // Set up the list of titles count = ghb_array_len(ud->settings_array); for (ii = 0; ii < count; ii++) @@ -1859,6 +1865,11 @@ queue_add_all_action_cb(GSimpleAction *action, GVariant *param, chooser = GTK_FILE_CHOOSER(find_widget(row, "title_dir")); settings = ghb_array_get(ud->settings_array, ii); + if (preset != NULL) + { + ghb_preset_to_settings(settings, preset); + ghb_set_title_settings(ud, settings); + } title_id = ghb_dict_get_int(settings, "title"); title = ghb_lookup_title(title_id, &titleindex); if (title != NULL) |