[SOLVED] Toggle Favorite File has no action while no item is selected

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

[SOLVED] Toggle Favorite File has no action while no item is selected

Post by Leito »

I believe there's a bug on the command "Toggle Favorite File" when no item is selected in the list:

Test #1
  1. Browse into any folder.
  2. Clear all selection.
  3. Call Favorites | Toggle Favorite File.
    ⇒ The current folder isn't added to the Favorite Files :( , the status bar shows the following message:
    Image
Test #2
  1. Browse into any folder.
  2. Clear all selection.
  3. Call Favorites | Toggle Favorite Folder.
    ⇒ The current folder is added to the Favorite Folders. :tup:
    Image
  4. Call Favorites | Toggle Favorite File.
    ⇒ The current folder isn't added to the Favorite Files :( , even though the following status message is displayed:
    Image
  5. Bonus: call Favorites | Toggle Favorite Folder.
    ⇒ The current folder is removed from the Favorite Folders. :tup:
    Image
  6. Bonus: call Favorites | Toggle Favorite File.
    ⇒ The current folder isn't added nor removed to the Favorite Files, even though the following status message is displayed:
    Image
Expected results
Apart from the fact that both tests should show the same behavior (that's a bug), when calling Favorites | Toggle Favorite File on a list where no selection is made, I'd like to see the current folder added/removed to the Favorite Files (if that's not a bug, that's a wish :) ).
Last edited by Leito on 30 Jan 2019 08:10, edited 1 time in total.

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

Re: Toggle Favorite File has no action while no item is selected

Post by admin »

There was indeed something quite wrong. It even saved the settings when you only opened the Favorites submenu! :shock:

But I don't think it should add the current folder when no file is selected. IMO that's a bit over-smart.

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Toggle Favorite File has no action while no item is selected

Post by Leito »

admin wrote: ↑28 Jan 2019 14:27 There was indeed something quite wrong. It even saved the settings when you only opened the Favorites submenu! :shock:
Oh yeah, I saw that last week but forgot to report it.

EDIT:
---

Code: Select all

v19.50.0248 - 2019-01-28 14:33
    ! Menu Favorites: Too much saving going on when "Configuration | General | 
      Startup & Exit | Save Settings | Save changes to disk immediately" was 
      ticked. Fixed.
Fixed! :beer:
---
admin wrote: ↑28 Jan 2019 14:27 But I don't think it should add the current folder when no file is selected. IMO that's a bit over-smart.
In that case, how do you justify that it works with the Toggle Favorite Folder? IMO the behavior should be consistent as we can add both files and folders to Favorite Files or to Favorite Folders.

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

Re: Toggle Favorite File has no action while no item is selected

Post by admin »

Well, there is always a current folder, but not always a current file.

When I choose "Toggle Favorite File" I expect it to works on files, "files" in the sense of those things in the right pane, the "file list" (which can contain folders, of course). Also selecting a Favorite File will select in the file list.

Whereas "Toggle Favorite Folder" works on folders in the left pane, the folder tree.

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Toggle Favorite File has no action while no item is selected

Post by Leito »

Ok, makes sense.

Post Reply