Skip to content

Commit

Permalink
Fix selections not saving if added via the button
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtpap committed Oct 6, 2024
1 parent 9ada5fb commit 38b87d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pipewire-audio-capture-app.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,12 @@ static bool add_app_clicked(obs_properties_t *properties, obs_property_t *proper
const char *app_to_add = obs_data_get_string(settings, SETTING_AVAILABLE_APPS);

obs_data_array_t *selections = obs_data_get_array(settings, SETTING_SELECTION_MULTIPLE);
if (obs_data_array_count(selections) == 0) {
obs_data_array_release(selections);

selections = obs_data_array_create();
obs_data_set_array(settings, SETTING_SELECTION_MULTIPLE, selections);
}

/* Don't add if selection is already in the list */

Expand Down

0 comments on commit 38b87d9

Please sign in to comment.