| 3282 | } |
| 3283 | |
| 3284 | G_MODULE_EXPORT void |
| 3285 | preset_default_action_cb(GSimpleAction *action, GVariant *param, |
| 3286 | signal_user_data_t *ud) |
| 3287 | { |
| 3288 | hb_preset_index_t *path = get_selected_path(ud); |
| 3289 | if (path != NULL) |
| 3290 | { |
| 3291 | hb_value_t *dict = hb_preset_get(path); |
| 3292 | if (dict != NULL && !ghb_dict_get_bool(dict, "Folder")) |
| 3293 | { |
| 3294 | presets_list_clear_default(ud); |
| 3295 | hb_presets_clear_default(); |
| 3296 | ghb_dict_set_bool(dict, "Default", 1); |
| 3297 | presets_list_show_default(ud); |
| 3298 | store_presets(); |
| 3299 | g_simple_action_set_enabled(action, FALSE); |
| 3300 | } |
| 3301 | g_free(path); |
| 3302 | } |
| 3303 | } |
| 3304 | |
| 3305 | G_MODULE_EXPORT void |
| 3306 | preset_edited_cb( |
nothing calls this directly
no test coverage detected