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

Feature: Close column when selecting a file #11003

Merged
merged 19 commits into from
Feb 7, 2023

Conversation

ferrariofilippo
Copy link
Contributor

@ferrariofilippo ferrariofilippo commented Jan 13, 2023

Resolved / Related Issues
Items resolved / related issues by this PR.

  • Closes #10998

Details
Actual fix is at:

  • FileList_ItemTapped(...) of ColumnViewBase.xaml.cs (lines 531-564)
  • ColumnViewBase_ItemTapped(...) of ColumnViewBrowser.xaml.cs (lines 341-354)

Validation
How did you test these changes?

  • Built and ran the app

@ferrariofilippo ferrariofilippo marked this pull request as draft January 13, 2023 21:47
@ferrariofilippo ferrariofilippo marked this pull request as ready for review January 13, 2023 22:17
@ferrariofilippo
Copy link
Contributor Author

I think we should refactor Dispose() of ColumnViewBrowser.xaml.cs to avoid all unnecessary casts (I mean, we can cast each item only once as Frame instead of doing it four times)

Copy link
Contributor

@hecksmosis hecksmosis left a comment

Choose a reason for hiding this comment

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

Apart from this I think it's ok

src/Files.App/Views/LayoutModes/ColumnViewBase.xaml.cs Outdated Show resolved Hide resolved
@hecksmosis
Copy link
Contributor

I think we should refactor Dispose() of ColumnViewBrowser.xaml.cs to avoid all unnecessary casts (I mean, we can cast each item only once as Frame instead of doing it four times)

Yes, we probably should

hecksmosis
hecksmosis previously approved these changes Jan 30, 2023
Copy link
Contributor

@hecksmosis hecksmosis left a comment

Choose a reason for hiding this comment

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

LGTM

hecksmosis
hecksmosis previously approved these changes Feb 2, 2023
@yaira2 yaira2 requested a review from d2dyno1 February 2, 2023 17:41
d2dyno1
d2dyno1 previously approved these changes Feb 6, 2023
@d2dyno1
Copy link
Member

d2dyno1 commented Feb 6, 2023

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yaira2
Copy link
Member

yaira2 commented Feb 6, 2023

@ferrariofilippo while it closes the column, it doesn't seem to clear the gray background on the folder. A second issue I noticed is that the column doesn't close if you select the file via keyboard shortcuts.

@ferrariofilippo
Copy link
Contributor Author

@ferrariofilippo while it closes the column, it doesn't seem to clear the gray background on the folder. A second issue I noticed is that the column doesn't close if you select the file via keyboard shortcuts.

Done

Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

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

LGTM

@yaira2 yaira2 merged commit 2df6ffc into files-community:main Feb 7, 2023
@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Feb 7, 2023
@ferrariofilippo ferrariofilippo deleted the Feature_Close_Column branch February 7, 2023 22:48
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.

5 participants