From a5e5669b30bf625683146d153a8006a6dd552511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net> Date: Thu, 30 Jan 2025 17:06:43 +0100 Subject: [PATCH] feat: external app data --- src/editor.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor.jl b/src/editor.jl index f60d995..d385c4c 100644 --- a/src/editor.jl +++ b/src/editor.jl @@ -41,7 +41,8 @@ function larvaeditor(path=nothing; # to (re-)load a file, the app is reloaded with the filepath as sole information # from previous session - input = Ref{Union{Nothing, String}}(path) + T = Ref{Union{Nothing, String}} + input = path isa T ? path : T(path) App(title=title) do session::Session -- GitLab