Skip to content

Commit

Permalink
PermissionStore: fail gets silently (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Apr 26, 2024
1 parent 834f785 commit dcfa3c2
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Permissions/Backend/PermissionStore.vala
Expand Up @@ -81,17 +81,8 @@ public class Permissions.PermissionStore : GLib.Object {
try {
return yield dbus.get_permission (table, id, app);
} catch (Error e) {
var dialog = new Granite.MessageDialog (
_("Couldn't get permission"),
e.message,
new ThemedIcon ("preferences-system")
) {
badge_icon = new ThemedIcon ("dialog-error"),
modal = true,
transient_for = ((Gtk.Application) GLib.Application.get_default ()).active_window
};
dialog.present ();
dialog.response.connect (dialog.destroy);
// gets can fail if a table doesn't exist, so fail silently
debug (e.message);
}

return { null };
Expand Down

0 comments on commit dcfa3c2

Please sign in to comment.