Skip to content

Commit

Permalink
fix: null out properties in prefs.ts on window close (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle authored Feb 5, 2024
1 parent 6216ce0 commit 66ff5ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/prefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,12 @@ export default class BluetoothQuickConnectPreferences extends ExtensionPreferenc
group.add(widget);
page.add(group);
window.add(page);
window.connect("close-request", () => {
// @ts-expect-error, GJS disposal
this._extension = null;
this._settings = null;
this._builder = null;
this._widget = null;
});
}
}

0 comments on commit 66ff5ee

Please sign in to comment.