Merge branch 'sathieu-main-patch-17a8' into 'main'
Only filter by MIME types on block mode See merge request pwithnall/malcontent!158
This commit is contained in:
commit
8f2bf6e233
|
@ -355,12 +355,14 @@ mct_app_filter_is_appinfo_allowed (MctAppFilter *filter,
|
||||||
!mct_app_filter_is_path_allowed (filter, abs_path))
|
!mct_app_filter_is_path_allowed (filter, abs_path))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (filter->app_list_type == MCT_APP_FILTER_LIST_BLOCKLIST) {
|
||||||
types = g_app_info_get_supported_types (app_info);
|
types = g_app_info_get_supported_types (app_info);
|
||||||
for (gsize i = 0; types != NULL && types[i] != NULL; i++)
|
for (gsize i = 0; types != NULL && types[i] != NULL; i++)
|
||||||
{
|
{
|
||||||
if (!mct_app_filter_is_content_type_allowed (filter, types[i]))
|
if (!mct_app_filter_is_content_type_allowed (filter, types[i]))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (G_IS_DESKTOP_APP_INFO (app_info))
|
if (G_IS_DESKTOP_APP_INFO (app_info))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue