| 1180 | } |
| 1181 | |
| 1182 | void |
| 1183 | ghb_prefs_to_settings(GhbValue *settings) |
| 1184 | { |
| 1185 | // Initialize the ui from presets file. |
| 1186 | GhbValue *dict; |
| 1187 | |
| 1188 | if (prefsDict == NULL) |
| 1189 | return; |
| 1190 | |
| 1191 | // Setting a ui widget will cause the corresponding setting |
| 1192 | // to be set, but it also triggers a callback that can |
| 1193 | // have the side effect of using other settings values |
| 1194 | // that have not yet been set. So set *all* settings first |
| 1195 | // then update the ui. |
| 1196 | dict = ghb_dict_get(prefsDict, "Preferences"); |
| 1197 | ghb_dict_copy(settings, dict); |
| 1198 | } |
| 1199 | |
| 1200 | static hb_preset_index_t * |
| 1201 | get_selected_path(signal_user_data_t *ud) |
no test coverage detected