mac-capture: Fix show hidden windows option

`screen_capture_build_content_list` or similar calls uses updated
`sc->show_hidden_windows` or similar flags, but these are not set
before calling these functions.
This commit is contained in:
Yoshimasa Niwa 2023-06-23 15:17:37 -07:00 committed by Lain
parent 69e8b73684
commit 36abf04afa

View file

@ -904,16 +904,15 @@ static bool content_settings_changed(void *data, obs_properties_t *props, obs_pr
}
}
sc->show_empty_names = obs_data_get_bool(settings, "show_empty_names");
sc->show_hidden_windows = obs_data_get_bool(settings, "show_hidden_windows");
sc->hide_obs = obs_data_get_bool(settings, "hide_obs");
screen_capture_build_content_list(sc, capture_type_id == ScreenCaptureDisplayStream);
build_display_list(sc, props);
build_window_list(sc, props);
build_application_list(sc, props);
sc->show_empty_names = obs_data_get_bool(settings, "show_empty_names");
sc->show_hidden_windows = obs_data_get_bool(settings, "show_hidden_windows");
sc->hide_obs = obs_data_get_bool(settings, "hide_obs");
return true;
}