Indicate presence of undisplayed hidden files with empty message#2663
Conversation
|
if we mention hidden files we may as well straight up display a button to show them, instead of "lol go find it yourself" ? |
|
@danirabbit What is your opinion of adding a "Show Hidden" button in this context? |
|
OK, so should it change the global setting or just reveal the hidden files for the folder in question? |
|
A one-time "display this folder" that lasts only till you change folder could be nice |
|
That would be possible. My only concern is that there would be no obvious way to revert the step without reloading or navigating away from the folder (the appmenu and context menu would still show hidden files are not shown). Its not a big deal though I guess. |
|
@teamcons Latest commit implements a basic implementation of you idea. Instead of having two labels, there are now only one showing at any time - corresponding to the two relevant situations. I have also avoided the words "Empty Folder" as it is rather ambiguous. |
|
"This folder contains only hidden files" ? |
|
I wonder whether the button should show below the text? Any styling required? |
Using only mental images I feel like below might look cleaner |
|
@zeenbok, Yes, I guess action buttons more usually show below message text. I'll amend. |
|
@zeebok Moved button as per your suggestion. Unsure of the best alignment but I have use |
|
I think this is good to go if you fix the conflicts |
|
Need to make compatible with recent changes to settings and actions. |
|
@zeebok Could you take another look when you have time? I have updated this for recent changes to |
|
Yeah I can take a look tomorrow! |
|
It all functions as you describe! Code looks good too. I do notice a strange delay of sorts with this new overlay. If I am in a folder with this message and go up to the parent, I see the folder change and the message overlay is still there for a moment. Also see this delay when pressing the Show/Hide button; slight moment after clicking for the button to update. |
|
Thanks for the review. I'll see if I can reduce the update delay before merging. |
Fixes #1278
BEFORE
AFTER