summaryrefslogtreecommitdiff
path: root/core/gjs/src/variable.ts
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-11 20:52:44 +0000
committerAylur <[email protected]>2024-09-11 20:52:44 +0000
commit0e259e49357d5389db897414fc52b50b1ce1d14c (patch)
treea4bb497e24eae2bd807f638953433f455f17f7a5 /core/gjs/src/variable.ts
parent374d76f4152ea46987203f49642d7d46aff221ab (diff)
example: add lua simple-bar
Diffstat (limited to 'core/gjs/src/variable.ts')
-rw-r--r--core/gjs/src/variable.ts4
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) {