-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide favourite icon in details view if favourite action is not available #7716
Hide favourite icon in details view if favourite action is not available #7716
Conversation
When the favourite icon in the details view is clicked the "Favorite" action is triggered. However, if the action name given to "triggerAction" is not found then the "Download" action is triggered instead. As the "Favorite" action is not available in some file lists (like "Recents") the "Download" action was executed instead in those cases, which was a strange behaviour. Now the favourite icon is hidden if its action is not available. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #7716 +/- ##
============================================
+ Coverage 51.18% 51.18% +<.01%
Complexity 24948 24948
============================================
Files 1605 1605
Lines 94923 94923
Branches 1376 1376
============================================
+ Hits 48583 48584 +1
+ Misses 46340 46339 -1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
#962074 |
@danxuliu Could you open a backport against stable12? |
@MorrisJobke Here you have: #7742 |
Fixes (in master) #4568
The problem was that the Favorite file action is added only to some of the file lists, but the icon in the details view was shown unconditionally for every file list, so when it was clicked and the Favorite action was tried to be triggered it was not found and the Download action was executed instead.
Now the favourite icon is hidden if its action is not available.