Changes the setting for the current session and also saves it for future sessions
| 5216 | // Changes the setting for the current session |
| 5217 | // and also saves it for future sessions |
| 5218 | G_MODULE_EXPORT void |
| 5219 | when_complete_changed_cb (GtkWidget *widget, gpointer data) |
| 5220 | { |
| 5221 | signal_user_data_t *ud = ghb_ud(); |
| 5222 | GhbValue * value = ghb_widget_value(widget); |
| 5223 | ghb_set_queue_done_action(gtk_combo_box_get_active(GTK_COMBO_BOX(widget))); |
| 5224 | ghb_ui_update("MainWhenComplete", value); |
| 5225 | ghb_ui_update("QueueWhenComplete", value); |
| 5226 | ghb_value_free(&value); |
| 5227 | |
| 5228 | ghb_widget_to_setting (ud->prefs, widget); |
| 5229 | |
| 5230 | const gchar *name = ghb_get_setting_key(widget); |
| 5231 | ghb_pref_set(ud->prefs, name); |
| 5232 | ghb_prefs_store(); |
| 5233 | } |
| 5234 | |
| 5235 | // Only changes the setting for the current session |
| 5236 | G_MODULE_EXPORT void |
nothing calls this directly
no test coverage detected