libsysprof-ui: dont warn for not-supported error

This commit is contained in:
Christian Hergert
2020-02-26 10:46:08 -08:00
parent f01298ead5
commit 0c698f2da1

View File

@ -624,7 +624,10 @@ sysprof_display_present_cb (GObject *object,
g_assert (G_IS_TASK (task));
if (!sysprof_aid_present_finish (aid, result, &error))
g_warning ("Failed to present aid %s: %s", G_OBJECT_TYPE_NAME (aid), error->message);
{
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
g_warning ("Failed to present aid %s: %s", G_OBJECT_TYPE_NAME (aid), error->message);
}
n_active = g_task_get_task_data (task);