Page 1 of 1

Action log and undo dropdown text spurious

Posted: 28 Apr 2022 08:21
by jupe
I have noticed an issue with the text that is shown in the Action Log and the :undo dropdown, I knocked up a a repro script that should demonstrate it:

Code: Select all

  setting "BackgroundFileOps", 0;
  goto "%PERSONALREAL%";
  $name = "undo.txt";
  new($name);
  moveto "%TEMP%", $name;
  delete 0, 0, "%TEMP%\$name";
  text "Notice that in the top pane of the Action Log dialog (also the :undo dropdown)<crlf>it says the file that was just deleted was in<crlf><curpath> not TEMP.<crlf 2>The correct location is shown in the bottom pane of the dialog though.";
  #205;

Re: Action log and undo dropdown text spurious

Posted: 28 Apr 2022 10:39
by admin
I assume this only happens when you delete an item using SC delete with a path other than the current path. So the repro script is also the only way to see the problem. :)

Whatever, it should be fixed in the next beta.

Re: Action log and undo dropdown text spurious

Posted: 18 Jul 2022 07:43
by jupe
There are also other ways that this can happen, not sure if it will be a can of worms worth opening though, but for example if you use the right drag drop menu items such as "Move Here to New Subfolder" etc. when dragging to the tree, the undo text can be misleading, eg:

2022-07-10_163519.png

Re: Action log and undo dropdown text spurious

Posted: 18 Jul 2022 09:07
by admin
OK, I fixed this case and another one, and a whole family of cases which should keep most of the worms in the can . Let's see if more comes up.

Re: Action log and undo dropdown text spurious

Posted: 19 Nov 2022 16:33
by jupe
Only minor, but I noticed under certain conditions a New Folder entry that displays nothing as the name for the newly created folder, this occurs when you use SC moveto (probz copyto etc too, untested) on a file that isn't currently displayed in the list, and with a destination folder that doesn't exist, so XY prompts to create the folder correctly, but the folder name is blank in the dropdown and the top part of Action Log. eg.

moveto "<xyscripts>\random99", "<xyscripts>\New Text File.txt";
(create the text file first & close the tab).

2022-11-20_020838.png

Re: Action log and undo dropdown text spurious

Posted: 20 Nov 2022 09:01
by admin
Yep, fixed. :tup: