diff options
Diffstat (limited to 'core/gjs')
-rw-r--r-- | core/gjs/src/variable.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<T> extends Function { @@ -101,7 +101,7 @@ class VariableWrapper<T> extends Function { drop() { this.variable.emit("dropped") - this.variable.run_dispose() + idle(() => this.variable.run_dispose()) } onDropped(callback: () => void) { |