From 5fe3229e00c8eb7e7affbde0ef0e063e0e321b1b Mon Sep 17 00:00:00 2001 From: ne_mene Date: Fri, 3 Apr 2026 13:51:01 +0200 Subject: speck editor: file dialog attach --- src/scenes/speck_editor.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/scenes') diff --git a/src/scenes/speck_editor.lua b/src/scenes/speck_editor.lua index 413b700..8ed4df9 100644 --- a/src/scenes/speck_editor.lua +++ b/src/scenes/speck_editor.lua @@ -69,7 +69,7 @@ local PROPERTY_TYPES = { end props[name] = trunc_filename_to_res(files[1]) - end, { defaultname = custom.directory or "" }) + end, { defaultname = custom.directory or "", attachtowindow = true }) end end im.layout() @@ -101,7 +101,7 @@ local function speck_editor_ui_sys(editor) editor.filepath = trunc_filename_to_res(files[1]) editor.speck_sys = load_speck_sys_non_cached(editor.filepath) - end, { defaultname = "res/speck/" }) + end, { defaultname = "res/speck/", attachtowindow = true }) end if im.button("Save as") then @@ -112,7 +112,7 @@ local function speck_editor_ui_sys(editor) editor.filepath = trunc_filename_to_res(files[1]) save(editor) - end, { defaultname = "res/speck/" }) + end, { defaultname = "res/speck/", attachtowindow = true }) end if im.button("Save") then save(editor) -- cgit v1.3-2-g0d8e