Created attachment 126688 [details] case-1.mp4 I-First case: 1) Open Filechooser to location with some images 2) Select an image then move mouse pointer over another image 3) Move mouse pointer outside list of images Expected behaviour : Preview should show the selected image Real behaviour : Preview still shows the last image that mouse pointer passed on See attached video case-1 for more info. II-Second case: 1) Open Filechooser to location with some images 2) Select an image 3) Move mouse pointer over a folder then outside list of items Expected behaviour : Preview should show the selected image Real behaviour : Preview still shows nothing See attached video case-2 for more info. NB : In both cases, the preview panel reset to correct image only if mouse pointer move over an empty space at the end of list of items, but this is difficult if you have big list of items.
Created attachment 126690 [details] case-2.mp4
Would not be logical to have preview of only the selected item and not the one which the mouse pointer pass over.
(In reply to medin from comment #2) > Would not be logical to have preview of only the selected item and not the > one which the mouse pointer pass over. No for consistency with other programs that have this behavior. I guess the issue is that the focus-out event of the view is not cached by the preview panel, that should reset its preview file to the selected one by the the view.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/188
Git commit 0be10baef00c1fd3f26f6658b8c5ef6b56cbb862 by David Faure, on behalf of Méven Car. Committed on 25/10/2020 at 19:55. Pushed by dfaure into branch 'master'. FileWidget: Show Selected file preview on mouse leave For consistency with dolphin and show the preview of the file that will get selected, upon activation. FIXED-IN: 5.76 M +18 -6 src/filewidgets/kdiroperator.cpp https://invent.kde.org/frameworks/kio/commit/0be10baef00c1fd3f26f6658b8c5ef6b56cbb862
Second case is still happening. Operating System: Manjaro Linux KDE Plasma Version: 5.21.3 KDE Frameworks Version: 5.80.0 Qt Version: 5.15.2 Kernel Version: 5.4.105-1-MANJARO OS Type: 64-bit Graphics Platform: X11
Works for me. Please attach a screen recording that shows it still happening so we can see what might be different about your setup.
(In reply to Nate Graham from comment #7) > Works for me. Please attach a screen recording that shows it still happening > so we can see what might be different about your setup. In fact mouse pointer needs to exit list area two times with last item being hovered as folder. See attached video for more info.
Created attachment 137350 [details] No thumbnail hover folder
Thanks for the video. I still cannot reproduce the issue when I set double-click and do the exact same thing. The moment my cursor passes over the table header, the preview image is restored as expected.
(In reply to Nate Graham from comment #10) > Thanks for the video. I still cannot reproduce the issue when I set > double-click and do the exact same thing. The moment my cursor passes over > the table header, the preview image is restored as expected. The problem comes from "General_Behavior>Animation_speed" being set to "Instant", If I set it in the middle the problem doesn't appear. I think the code that refresh the preview is inside a block that's not executed if "Animation speed" is set to "Instant".
Aha! Can reproduce with instant animations. Wanna submit a merge request?
(In reply to Nate Graham from comment #12) > Aha! Can reproduce with instant animations. > > Wanna submit a merge request? I wish I had the skills to do it :(
On Wayland the problem is still present both in case 1 and 2 even if animations are enabled.
(In reply to Méven Car from comment #3) > No for consistency with other programs that have this behavior. I don't know of any KDE app that has this weird behavior, it will be great to enabled preview only if the item is effectively select like how GTK dialogs do it.
(In reply to medin from comment #15) > (In reply to Méven Car from comment #3) > > > No for consistency with other programs that have this behavior. > > I don't know of any KDE app that has this weird behavior, I meant Dolphin has this behavior, but nowadays its information panel has a setting to switch to "preview only selected files" mode. This behavior is mostly tailored for single click mode and it is important for that use case we want to support.
(In reply to Méven Car from comment #16) > (In reply to medin from comment #15) > > (In reply to Méven Car from comment #3) > > > > > No for consistency with other programs that have this behavior. > > > > I don't know of any KDE app that has this weird behavior, > > I meant Dolphin has this behavior, but nowadays its information panel has a > setting to switch to "preview only selected files" mode. That information panel also suffers from this bug. Where can I find "preview only selected files" mode to enable/disable it inside Dolphin? > This behavior is mostly tailored for single click mode and it is important > for that use case we want to support. Double click is the default choice on other platforms, because it avoids accidental opens and is not confusing.
The real frustration is when you select an important file to submit online, and you always find yourself with the selected file different from the one visible on preview panel, so I always recheck the preview by re-selecting the target file, it's daily frustration for me when it concerns file selector which is one of the important software products in Plasma desktop.
(In reply to medin from comment #17) > (In reply to Méven Car from comment #16) > > (In reply to medin from comment #15) > > > (In reply to Méven Car from comment #3) > > > > > > > No for consistency with other programs that have this behavior. > > > > > > I don't know of any KDE app that has this weird behavior, > > > > I meant Dolphin has this behavior, but nowadays its information panel has a > > setting to switch to "preview only selected files" mode. > > That information panel also suffers from this bug. Where can I find "preview > only selected files" mode to enable/disable it inside Dolphin? > > > This behavior is mostly tailored for single click mode and it is important > > for that use case we want to support. > In dolphin, settings > Interface > Panel > untick "Show item on hover", Apply This is also accessible right-clicking on the information panel. > Double click is the default choice on other platforms, because it avoids > accidental opens and is not confusing. The default changed in Plasma 6.0, this hasn't propagated everywhere yet. The setting default behavior might change, but a lot of users might have got used to the current behavior, so we will want a setting there too. The FileWidget does not match Dolphin behavior: in dolphin, if the view is not hoovered, the preview shows the selected file again. That's two things that would need to be fixed.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1671
Git commit 25a0c69729f70b41c502539e2300418215ae3887 by Méven Car. Committed on 02/08/2024 at 07:13. Pushed by meven into branch 'master'. KFileWidget: reset preview to selected file on hover leave As in Dolphin. M +13 -0 src/filewidgets/kdiroperator.cpp https://invent.kde.org/frameworks/kio/-/commit/25a0c69729f70b41c502539e2300418215ae3887