Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Bug fixes and performance improvements #169

Merged
merged 6 commits into from
Jul 29, 2023
Merged

Conversation

SuhasDissa
Copy link
Member

This PR contains some Bug fixes and performance improvements related to the Recording Items Screen

Bug Fixes

  • Fixed a bug that caused the app to crash when clicking on delete all recordings button.1
  • Fixed the broken sort menu.2

Performance Improvements

  • Increase the performance of file sort.
  • Increase the performance of file delete. 3

Other Changes

  • Moved the file handling logic into a separate FileRepository. So the overall code looks cleaner and easy to maintain.
  • Added the "Default" option to sorting menu for unsorted list.

Footnotes

  1. This bug exists in the latest release. Occurs when there are more than 5(approx.) recording items.

  2. This bug exists in the latest release. Sorting the items by size doesn't seem do anything.

  3. Fixed the UI freezing when deleting files

@Bnyro
Copy link
Member

Bnyro commented Jul 29, 2023

Only some minor suggestions, looks great in general! Thanks! <3

@Bnyro Bnyro merged commit f7772a9 into you-apps:main Jul 29, 2023
1 check passed
@Bnyro
Copy link
Member

Bnyro commented Jul 29, 2023

Thank you! <3

}
fileRepository.deleteSelectedFiles(selectedFiles.map { it.recordingFile })
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found an issue in my code.
I forgot to clear the selectedFiles list after deleting the selected files.

Steps to reproduce bug

  • Select a few Items and delete them
  • After the deletion is complete, click the delete all button
  • Nothing happens

Delete all button only works when there are no items selected (when the selectedFiles is empty).
But in here since I forgot to clear the list, the delete all button does not work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in ecf10af

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for spotting <3

@SuhasDissa SuhasDissa deleted the papomans branch July 31, 2023 10:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants