Add input dialog

This commit is contained in:
2025-01-19 20:55:53 +08:00
parent 51b7df02e7
commit 63346396e0
4 changed files with 56 additions and 15 deletions

View File

@@ -677,6 +677,7 @@ class JSAutoFreeFunction {
/// Automatically free the function when it's not used anymore
JSAutoFreeFunction(this.func) {
func.dup();
finalizer.attach(this, func);
}
@@ -685,6 +686,6 @@ class JSAutoFreeFunction {
}
static final finalizer = Finalizer<JSInvokable>((func) {
func.free();
func.destroy();
});
}