mac-capture: Don't show apps with empty name in SCK

SCK's application list has one entry with empty name and bundle ID which
belongs to WindowServer. This is not worth exposing since an empty entry
would confuse users and nothing would get captured if selected.
This commit is contained in:
gxalpha 2022-07-17 23:16:25 +02:00 committed by Patrick Heyer
parent 22baff138b
commit b72f15dcef

View File

@ -928,8 +928,9 @@ static bool build_application_list(struct screen_capture *sc,
[application.applicationName UTF8String];
const char *bundle_id =
[application.bundleIdentifier UTF8String];
obs_property_list_add_string(application_list, name,
bundle_id);
if (strcmp(name, "") != 0)
obs_property_list_add_string(application_list,
name, bundle_id);
}];
os_sem_post(sc->shareable_content_available);