diff --git a/src/Access/Portal.vala b/src/Access/Portal.vala index e262aa4f..820faa38 100644 --- a/src/Access/Portal.vala +++ b/src/Access/Portal.vala @@ -32,13 +32,13 @@ public class Access.Portal : Object { }; if ("icon" in options) { + // elementary HIG use non-symbolic icon, while portals ask for symbolic ones. var icon = options["icon"].get_string ().replace ("-symbolic", ""); if (icon == "find-location") { dialog = new LocationDialog (app_id) { parent_handle = parent_window }; } else { - // elementary HIG use non-symbolic icon, while portals ask for symbolic ones. dialog.secondary_icon = new ThemedIcon (icon); } } @@ -66,9 +66,6 @@ public class Access.Portal : Object { dialog.allow_label = options["grant_label"].get_string (); } - var _results = new HashTable (str_hash, str_equal); - uint32 _response = 2; - if ("choices" in options) { var choices_iter = options["choices"].iterator (); Variant choice_variant; @@ -78,6 +75,9 @@ public class Access.Portal : Object { } } + var _results = new HashTable (str_hash, str_equal); + uint32 _response = 2; + dialog.response.connect ((response) => { switch (response) { case ALLOW: