From 0e259e49357d5389db897414fc52b50b1ce1d14c Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 11 Sep 2024 20:52:44 +0000 Subject: example: add lua simple-bar --- core/gjs/src/variable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/gjs/src') diff --git a/core/gjs/src/variable.ts b/core/gjs/src/variable.ts index 9528ffe..84f8cc5 100644 --- a/core/gjs/src/variable.ts +++ b/core/gjs/src/variable.ts @@ -1,6 +1,6 @@ import Binding, { type Connectable } from "./binding.js" import { Astal } from "./imports.js" -import { interval } from "./time.js" +import { interval, idle } from "./time.js" import { execAsync, subprocess } from "./process.js" class VariableWrapper extends Function { @@ -101,7 +101,7 @@ class VariableWrapper extends Function { drop() { this.variable.emit("dropped") - this.variable.run_dispose() + idle(() => this.variable.run_dispose()) } onDropped(callback: () => void) { -- cgit v1.2.3