Skip to content

Commit

Permalink
permissions: Add reload method for enabling tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tchx84 committed Sep 14, 2023
1 parent fef7d03 commit bc67535
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/models/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,12 @@ var FlatpakPermissionsModel = GObject.registerClass({
this._cancelMonitors();
}

reload() {
this.shutdown();
this._setup();
this._setupMonitors();
}

set appId(appId) {
this._backup = null;
this.shutdown();
Expand Down

0 comments on commit bc67535

Please sign in to comment.