flipperdevices / qFlipper

qFlipper — desktop application for updating Flipper Zero firmware via PC
https://update.flipperzero.one
GNU General Public License v3.0
1.14k stars 152 forks source link

qFlipper App File Operations keep resetting the selected file #209

Open Sliicy opened 8 months ago

Sliicy commented 8 months ago

Bug Each time a File Operation is performed in the qFlipper app (such as renaming, uploading, downloading, or deleting), the app forgets the currently selected file and defaults to the first item of the currently viewed folder. This makes multiple file operations harder from a UI perspective.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'File manager'
  2. Navigate to any folder
  3. Perform any action on any file/folder
  4. After completion, the view forces the first file to always get selected.

Expected behavior The view should remember the index of the selected file after performing a File Operation inside 'File manager', and keep its place there.

  1. If the action is uploading a file/folder, then the new index should be set to the newly added item.
  2. If the action is renaming a file/folder, then the index should stay the same.
  3. If the action is deleting a file/folder, then the succeeding file/folder should get selected. If no succeeding item exists, then the preceding item should get selected. If no preceding item exists, then nothing should be selected.

Actual behavior The view forces the first file to always get selected after performing a File Operation inside 'File manager'.

Additional troubleshooting

  1. Does the issue persist if you try multiple times? Yes
  2. Does reconnecting/rebooting Flipper solve it? No

Logs LOGS.txt