Skip to content

Fixed grid view selection bugs #787

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

Merged
merged 1 commit into from
May 15, 2020
Merged

Fixed grid view selection bugs #787

merged 1 commit into from
May 15, 2020

Conversation

Dylan-Osborne
Copy link
Contributor

Fixed selection bugs with the grid view layout (#660 and #678)

Removing the if statement in line 36
if (selectedItems.Count > 0)
fixes the deselect and then reselect bugs.
I have read the commented warning above the if, but I haven't been able to recreate any crashes or issues by removing it.

Line 200
(sender as UIElement).CanDrag = FileList.SelectedItems.Contains(sender.DataContext as ListedItem);
fixes the issue whereby browsing up or down into a folder prevents the user from being able to select files.

Here's the result:
Files-UWP-Dev-2020-05-15-15-16-40

@yaira2 yaira2 requested a review from lukeblevins May 15, 2020 13:38
@yaira2
Copy link
Member

yaira2 commented May 15, 2020

@tsvietOK Can you review this pull request?

@tsvietOK
Copy link
Contributor

@yaichenbaum Yeah

@tsvietOK
Copy link
Contributor

@yaichenbaum From my side it is working fine.

Copy link
Contributor

@lukeblevins lukeblevins left a comment

Choose a reason for hiding this comment

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

LGTM

@lukeblevins lukeblevins added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels May 15, 2020
@yaira2 yaira2 merged commit 2b4ba1b into files-community:develop May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants