From e9d371a05e91afbfbf76dd0a0c5e962e01f2cb94 Mon Sep 17 00:00:00 2001 From: Alex Riss <00alexx@riss.at> Date: Wed, 3 Jan 2024 10:02:57 +0100 Subject: [PATCH] upgrade Blink version; allow clean Blink shutdown --- Project.toml | 2 +- src/SpmImageTycoon.jl | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 42d3dac..1c9d297 100644 --- a/Project.toml +++ b/Project.toml @@ -35,7 +35,7 @@ TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa" ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea" [compat] -Blink = "=0.12.8" +Blink = "=0.12.9" CodecZlib = "=0.7.2" ColorSchemes = "=3.23.0" DSP = "=0.7.8" diff --git a/src/SpmImageTycoon.jl b/src/SpmImageTycoon.jl index 4e53eb8..bbaa0f3 100644 --- a/src/SpmImageTycoon.jl +++ b/src/SpmImageTycoon.jl @@ -907,6 +907,9 @@ function tycoon(dir_data::String=""; return_window::Bool=false, keep_alive::Bool yield() sleep(0.1) end + # close and exit after a few seconds + sleep(5) + close(w, quit=true) end if return_window return w @@ -1037,6 +1040,8 @@ end @js w get_line_profile("Image_398.sxm", $start, $stop, 0.2) items = get_items(window=w) + close(w, quit=true) + return nothing end end