Skip to content
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

Fix MultiSelect download outside of default FileList #708

Merged
merged 2 commits into from
Apr 5, 2022

Conversation

KevinBoulongne
Copy link
Contributor

Signed-off-by: Kevin Boulongne [email protected]

@KevinBoulongne KevinBoulongne added the enhancement New feature or request label Mar 28, 2022
@KevinBoulongne KevinBoulongne added this to the 4.1.3 milestone Mar 28, 2022
@KevinBoulongne KevinBoulongne self-assigned this Mar 28, 2022
@KevinBoulongne KevinBoulongne changed the title Fixed MultiSelect download outside of default FileList Fix MultiSelect download outside of default FileList Mar 31, 2022
Base automatically changed from Multi-select-everywhere to master April 1, 2022 09:42
@KevinBoulongne KevinBoulongne marked this pull request as ready for review April 1, 2022 10:07
@KevinBoulongne KevinBoulongne requested a review from a team as a code owner April 1, 2022 10:07
@KevinBoulongne KevinBoulongne force-pushed the Fix-MultiSelect-download branch 2 times, most recently from 4b89814 to 3899b72 Compare April 1, 2022 13:46
@sonarcloud
Copy link

sonarcloud bot commented Apr 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

) {
super.onMenuButtonClicked(
multiSelectBottomSheet = FavoritesMultiSelectActionsBottomSheetDialog(),
areAllFromTheSameFolder = false,
Copy link
Member

Choose a reason for hiding this comment

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

I think it's better to set areAllFromTheSameFolder =false by default.
To avoid dupplications because here I find 7 occurrences.

emit(ApiRepository.getUUIDArchiveFiles(AccountUtils.currentDriveId, fileIds))
}
private fun download() {
if (navigationArgs.areAllFromTheSameFolder) downloadArchive() else downloadFiles()
Copy link
Member

Choose a reason for hiding this comment

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

The problem here is that if you download only one file, it will always download an archive.
Even if it's still weird this action but it would be nice if it was avoided 😅

@sirambd sirambd merged commit 92db39c into master Apr 5, 2022
@sirambd sirambd deleted the Fix-MultiSelect-download branch April 5, 2022 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants