💥 fix(control-center/notif-history): clean all button not doing anything on ::on-clicked

This commit is contained in:
retrozinndev
2025-07-23 22:20:45 -03:00
parent f0b86a10d2
commit 7b158b8c89
4 changed files with 34 additions and 21 deletions
+5 -3
View File
@@ -1,10 +1,12 @@
import { register } from "ags/gobject";
import { Gtk } from "ags/gtk4";
import { Page } from "./pages/Page";
import AstalIO from "gi://AstalIO";
import { timeout } from "ags/time";
import { variableToBoolean } from "../../scripts/utils";
import AstalIO from "gi://AstalIO";
import { createRoot } from "ags";
export { Pages };
export type PagesProps = {
@@ -68,13 +70,13 @@ class Pages extends Gtk.Box {
}
open(newPage: Page, onOpened?: () => void) {
const pageWidget = <Gtk.Revealer
const pageWidget = createRoot(() => <Gtk.Revealer
transitionDuration={this.#transDuration}
transitionType={this.#transType}
revealChild={false}>
{newPage as unknown as Gtk.Widget}
</Gtk.Revealer> as Gtk.Revealer;
</Gtk.Revealer> as Gtk.Revealer);
this.prepend(pageWidget);