imagej / imagej-legacy

ImageJ+ImageJ2 compatibility layer
https://imagej.net/libs/imagej-legacy
BSD 2-Clause "Simplified" License
17 stars 25 forks source link

SingleInstance issues #275

Open ngladitz opened 2 years ago

ngladitz commented 2 years ago

I currently see the following with the SingleInstance listener enabled:

Scenario 1:

Scenario 2:

I tried replacing the call of openAndAddToRecent() with openImage() to fix the issue in the second Scenario after which interception seems to work but then images opened via SingleInstance show odd behavior like being displayed with a very tiny default scale or colors being scaled differently (compared to opening the same image via e.g. File -> Open) and for some files (in my case BioFormats OBF with local / non-upstream modifications) I get two visually very distinct display windows (including title and image content) for the same series (though I only see openBytes on the reader being called once).