[gnome-control-center] applications: Fix wrong IDs being passed to portal permission store
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] applications: Fix wrong IDs being passed to portal permission store
- Date: Wed, 20 Mar 2019 17:12:14 +0000 (UTC)
commit a856740dfa38f3d6ac50ac13b3f6b33519cf5841
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Feb 19 15:44:58 2019 +0100
applications: Fix wrong IDs being passed to portal permission store
There were two cases of the app ID being used instead of the Flatpak ID.
panels/applications/cc-applications-panel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/panels/applications/cc-applications-panel.c b/panels/applications/cc-applications-panel.c
index 2d5ec1a00..f85917eb1 100644
--- a/panels/applications/cc-applications-panel.c
+++ b/panels/applications/cc-applications-panel.c
@@ -495,13 +495,13 @@ set_location_allowed (CcApplicationsPanel *self,
perms[1] = "0";
perms[2] = NULL;
- set_flatpak_permissions (self, "location", "location", self->current_app_id, perms);
+ set_flatpak_permissions (self, "location", "location", self->current_flatpak_id, perms);
}
static void
location_cb (CcApplicationsPanel *self)
{
- if (self->current_app_id)
+ if (self->current_flatpak_id)
set_location_allowed (self, cc_toggle_row_get_allowed (CC_TOGGLE_ROW (self->location)));
}
@@ -650,7 +650,7 @@ update_integration_section (CcApplicationsPanel *self,
GAppInfo *info)
{
g_autofree gchar *app_id = get_app_id (info);
- g_autofree gchar *flatpak_id = get_app_id (info);
+ g_autofree gchar *flatpak_id = get_flatpak_id (info);
gboolean set, allowed, disabled;
gboolean has_any = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]