Action log and undo dropdown text spurious

Things you’d like to miss in the future...
Post Reply
jupe
Posts: 2794
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Action log and undo dropdown text spurious

Post 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;

admin
Site Admin
Posts: 60591
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Action log and undo dropdown text spurious

Post 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.

jupe
Posts: 2794
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Action log and undo dropdown text spurious

Post 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
2022-07-10_163519.png (3.9 KiB) Viewed 524 times

admin
Site Admin
Posts: 60591
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Action log and undo dropdown text spurious

Post 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.

jupe
Posts: 2794
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Action log and undo dropdown text spurious

Post 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
2022-11-20_020838.png (90.52 KiB) Viewed 291 times

admin
Site Admin
Posts: 60591
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Action log and undo dropdown text spurious

Post by admin »

Yep, fixed. :tup:

Post Reply