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

Avoid resetting changes state when not showing stash #9921

Merged
merged 2 commits into from Jun 5, 2020

Conversation

niik
Copy link
Member

@niik niik commented Jun 2, 2020

References #7710

Description

This is a follow up to #9412 which fixed the problem described in #7710. This PR addresses a conceptual issue with regards to _hideStashedChanges.

After #9412 _hideStashedChanges Prior to this PR _hideStashedChanges would always reset the changes state to show the working directory changes (selecting all of the changes in the working directory since it didn't have the context that the <Changes> component has about previous selection). This small change makes the method a noop when there's no stash visible.

See #9412 (review)

@tierninho
Copy link
Contributor

Ran through some stashing scenarios as well as the issue from #7710 and all appears to be functioning as normal. 👍

@niik niik added this to Awaiting Review in Desktop 2.5.x releases Jun 3, 2020
outofambit
outofambit previously approved these changes Jun 4, 2020
Copy link
Contributor

@outofambit outofambit left a comment

Choose a reason for hiding this comment

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

app/src/lib/stores/app-store.ts Show resolved Hide resolved
@outofambit outofambit moved this from Awaiting Review to Review In Progress in Desktop 2.5.x releases Jun 4, 2020
Co-authored-by: evelyn masso <outofambit@github.com>
@outofambit outofambit self-assigned this Jun 5, 2020
@outofambit outofambit merged commit 08aec29 into development Jun 5, 2020
Desktop 2.5.x releases automation moved this from Review In Progress to PRs For Next Beta Jun 5, 2020
@outofambit outofambit deleted the i-have-nothing-to-hide branch June 5, 2020 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Desktop 2.5.x releases
PRs For Next Beta
Development

Successfully merging this pull request may close these issues.

None yet

3 participants