Bug: Script window is unselectable after renaming

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug: Script window is unselectable after renaming

Stein Rørvik
I came across this bug in ImageJ:

If you create a new window in the text editor, it will be named Untitled.txt

If you then write some code, e.g. in JavaScript and select Run,
the image will be renamed Untitled.js. So far ok.

But the window name is still listed as Untitled.txt in the Window menu.
It is therefore impossible to select it from the menu,
so in case some other application came in front of ImageJ,
it is impossible to bring the script window to front again.

The only solution is to try to quit ImageJ,
and in case the window is unsaved it is brought to front again when ImageJ asks if you want to save it.
If it was saved, then you need to locate the file again and reopen it.

The above behavior is the same if you run the script as .js or .ijm or any of the other script languages.
The problem is simply the lack of update of the Window menu.

I am using daily build ImageJ 1.52f on Windows 7 64-bit.

Stein

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Bug: Script window is unselectable after renaming

Wayne Rasband-2
> On Aug 31, 2018, at 9:44 AM, Stein Rørvik <[hidden email]> wrote:
>
> I came across this bug in ImageJ:
>
> If you create a new window in the text editor, it will be named Untitled.txt
>
> If you then write some code, e.g. in JavaScript and select Run,
> the image will be renamed Untitled.js. So far ok.
>
> But the window name is still listed as Untitled.txt in the Window menu.

This bug is fixed in the latest ImageJ daily build (1.52f45).

-wayne

> It is therefore impossible to select it from the menu,
> so in case some other application came in front of ImageJ,
> it is impossible to bring the script window to front again.
>
> The only solution is to try to quit ImageJ,
> and in case the window is unsaved it is brought to front again when ImageJ asks if you want to save it.
> If it was saved, then you need to locate the file again and reopen it.
>
> The above behavior is the same if you run the script as .js or .ijm or any of the other script languages.
> The problem is simply the lack of update of the Window menu.
>
> I am using daily build ImageJ 1.52f on Windows 7 64-bit.
>
> Stein

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html