💥 fix(control-center/pages): not running Page.onClose() when closing page

fixes bluetooth discovery not stopping when closing control-center
This commit is contained in:
retrozinndev
2025-05-25 14:53:44 -03:00
parent 58797ff01c
commit 73b2e96c93
+1
View File
@@ -70,6 +70,7 @@ class Pages extends Widget.Revealer {
if(!this.get_child()) return; if(!this.get_child()) return;
this.revealChild = false; this.revealChild = false;
this.#page!.onClose?.();
timeout(this.transitionDuration, () => { timeout(this.transitionDuration, () => {
this.remove(this.#page!); this.remove(this.#page!);
this.page = undefined; this.page = undefined;