From bc6753507ebc77d97ce7f0232a1ec6125272d577 Mon Sep 17 00:00:00 2001 From: Martin Abente Lahaye Date: Thu, 14 Sep 2023 10:02:11 -0400 Subject: [PATCH] permissions: Add reload method for enabling tests --- src/models/permissions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/models/permissions.js b/src/models/permissions.js index 90a5743a..9c110ae8 100644 --- a/src/models/permissions.js +++ b/src/models/permissions.js @@ -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();