Page 1 of 1

Load Selected Script File - Menu entry disabled

Posted: 15 May 2016 11:17
by highend
Nothing important, but I just stumbled upon it.

E.g. there is <xyscripts>\snippets
A file name "a.xys" (it doesn't matter) in that subfolder.

Ctrl + c on "a.xys", doubleclick on white space to go back to <xyscripts> (doesn't matter how you get back to <xyscripts>, back-button leads to the same result).

Ctrl + v. Now "a.xys" is in <xyscripts>.

It is selected and focused. <selitems> and <focitem> in addressbar report that.

Nevertheless -> Menu - Scripting - Load Selected Script File is now greyed out for "a.xys".

It's not about how the file is named or where it's stored, it's just about after copying & pasting the menu item is disabled for that item.

Re: Load Selected Script File - Menu entry disabled

Posted: 15 May 2016 14:13
by admin
The meaningful test here would have been:

Code: Select all

echo <curitem>;
But I will change it to make it work in your situation (file not actively focused + selected by user) as well.

Re: Load Selected Script File - Menu entry disabled

Posted: 15 May 2016 14:23
by highend
echo <curitem>;
Leads to the same result

Re: Load Selected Script File - Menu entry disabled

Posted: 15 May 2016 14:34
by admin
Then it would have worked.

Re: Load Selected Script File - Menu entry disabled

Posted: 15 May 2016 14:50
by highend
GIF.gif

Re: Load Selected Script File - Menu entry disabled

Posted: 15 May 2016 15:02
by admin
I believe that it did not work. But it looks like your testing with

Code: Select all

echo <curitem>;
was wrong. You have to do the test in the exact situation when it does not work.

Re: Load Selected Script File - Menu entry disabled

Posted: 15 May 2016 15:19
by highend
After pasting the file in R:\ (last video) I can switch to the address bar via Ctrl + Alt + a, enter ::echo <curitem>; {ENTER}
I get the pasted .xys file name. Switching back via Ctrl + Alt + l and then clicking on the Scripting menu -> Greyed out

Re: Load Selected Script File - Menu entry disabled

Posted: 15 May 2016 15:25
by admin
:oops: You are right. :oops:

Re: Load Selected Script File - Menu entry disabled

Posted: 15 May 2016 22:14
by highend
Confirmed fixed with v16.70.0011, thanks!