Refactor ModalAutoUpdateConfirm into ModalAutoUpdateDownloaded #2959

Merged
JakeVdub merged 1 commit from JakesDev into master 2019-10-08 15:01:28 +02:00
JakeVdub commented 2019-10-03 01:23:18 +02:00 (Migrated from github.com)

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Fixes 2188

Issue Number: 2188

What is the current behavior?

Currently there are two different modals being used for essentially the same function, ModalAutoUpdateConfirm and ModalAutoUpdateDownloaded. The only difference between them is ModalAutoUpdateDownloaded would set a boolean to decline auto updates, and then if that is the case ModalAutoUpdateConfirm would be shown instead, that had the same functionality but declining the update didn't change the boolean like UpdateDownloaded did.

What is the new behavior?

I refactored the two together, and got rid of ModalAutoUpdateConfirm. This was possible by removing the part where UpdateDownloaded set the boolean which was responsible for UpdateConfirm being displayed.

Other information

## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [x] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below ## PR Type What kind of change does this PR introduce? - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting) - [x] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: ## Fixes 2188 Issue Number: 2188 ## What is the current behavior? Currently there are two different modals being used for essentially the same function, ModalAutoUpdateConfirm and ModalAutoUpdateDownloaded. The only difference between them is ModalAutoUpdateDownloaded would set a boolean to decline auto updates, and then if that is the case ModalAutoUpdateConfirm would be shown instead, that had the same functionality but declining the update didn't change the boolean like UpdateDownloaded did. ## What is the new behavior? I refactored the two together, and got rid of ModalAutoUpdateConfirm. This was possible by removing the part where UpdateDownloaded set the boolean which was responsible for UpdateConfirm being displayed. ## Other information <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. -->
tzarebczan commented 2019-10-03 22:49:56 +02:00 (Migrated from github.com)

@JakeVdub, thanks for the PR, we'll get it reviewed soon! Can we show you some appreciation?

Make sure to check out https://lbry.tech/contribute and sign up for the dev mailing list at the bottom!

Also, see https://lbry.com/news/hacktoberfest-2019 for the latest Hacktoberfest details.

@JakeVdub, thanks for the PR, we'll get it reviewed soon! Can we show you some [appreciation](https://lbry.com/faq/appreciation)? Make sure to check out https://lbry.tech/contribute and sign up for the dev mailing list at the bottom! Also, see https://lbry.com/news/hacktoberfest-2019 for the latest Hacktoberfest details.
neb-b commented 2019-10-04 00:05:32 +02:00 (Migrated from github.com)

Thanks for the PR! I will give this a closer look once 0.36.0 is relased.

Thanks for the PR! I will give this a closer look once 0.36.0 is relased.
neb-b commented 2019-10-07 04:18:20 +02:00 (Migrated from github.com)

This looks good! Can you please add a changelog entry to this file? Then it's ready to merge.
https://github.com/lbryio/lbry-desktop/blob/master/CHANGELOG.md

This looks good! Can you please add a changelog entry to this file? Then it's ready to merge. https://github.com/lbryio/lbry-desktop/blob/master/CHANGELOG.md
tzarebczan commented 2019-10-10 20:34:39 +02:00 (Migrated from github.com)

@JakeVdub, thanks for the PR! Can we show you some appreciation for the contribution?

Also, we're giving away some Hacktoberfest bonuses and goodies for this month. We'll get it all figured out after you shoot us an email after this is reviewed/merged.

@JakeVdub, thanks for the PR! Can we show you some [appreciation](https://lbry.com/faq/appreciation) for the contribution? Also, we're giving away some [Hacktoberfest](https://lbry.com/news/hacktoberfest-2019) bonuses and goodies for this month. We'll get it all figured out after you shoot us an email after this is reviewed/merged.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#2959
No description provided.