Unfortunately, this has a few problems. If the user just closes the UI and then opens another JLS file by extension, they see both files, and the new one tends to be a vertically short waveform at the top.
The default open-by-extension behavior should be one of:
Open a new Joulescope UI that is only a JLS viewer. Ignore all other views, and do not save the configuration at the end.
Open in the existing Joulescope UI instance, if available. This likely requires starting a process, discovering the open Joulescope UI instance, and forwarding the file path.
We could even have a setting allowing the user to customize the behavior.
UI version
1.0.23
Your idea
The Joulescope UI installer registers the
.jls
file extension to open with the Joulescope UI. In 1.0.23, opening by extension:Unfortunately, this has a few problems. If the user just closes the UI and then opens another JLS file by extension, they see both files, and the new one tends to be a vertically short waveform at the top.
The default open-by-extension behavior should be one of:
We could even have a setting allowing the user to customize the behavior.
Reference
https://forum.joulescope.com/t/feature-request-one-view-per-file/613