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

Added checkbox for keeping service running background after GUI closes #670

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

ChiaMineJP
Copy link
Contributor

@ChiaMineJP ChiaMineJP commented Mar 28, 2022

Change summary

  • Added a checkbox to toggle on/off whether to keep services running background
  • Save checkbox value to prefs.yaml
  • Restore checkbox value from prefs.yaml

Alert

Users may easily forget that they have Chia services running in the background, even when they're trying to update the app. Perhaps it would be beneficial to notify people to ensure they shut down the Chia-blockchain app.

@ChiaMineJP ChiaMineJP changed the title Added checkbox for keeping service running background after app closes Added checkbox for keeping service running background after GUI closes Mar 28, 2022
@lgtm-com
Copy link

lgtm-com bot commented Mar 28, 2022

This pull request fixes 1 alert when merging beb580c into 054d7b3 - view on LGTM.com

fixed alerts:

  • 1 for Unused variable, import, function or class

@ChiaMineJP ChiaMineJP added the enhancement New feature or request label Mar 28, 2022
@ChiaMineJP ChiaMineJP self-assigned this Mar 29, 2022
@lgtm-com
Copy link

lgtm-com bot commented Mar 29, 2022

This pull request fixes 1 alert when merging 58dba07 into 054d7b3 - view on LGTM.com

fixed alerts:

  • 1 for Unused variable, import, function or class

@ChiaMineJP ChiaMineJP added PR ready Pull Request already created and removed PR ready Pull Request already created labels Mar 29, 2022
@lgtm-com
Copy link

lgtm-com bot commented Mar 30, 2022

This pull request fixes 1 alert when merging 79af9ca into d714c21 - view on LGTM.com

fixed alerts:

  • 1 for Unused variable, import, function or class

@ChiaMineJP
Copy link
Contributor Author

Demo

This video demonstrates how this PR works.
Points to check

  • With 'Keep services running background' checkbox checked, GUI closes instantly
  • Restarting GUI from instant close is really quick
  • When you uncheck the checkbox, background services will stop as usual
Instant_GUI_close.mp4

@ChiaMineJP ChiaMineJP force-pushed the keep-service-running-after-app-closes branch from 79af9ca to 4fa4770 Compare May 15, 2022 05:35
@lgtm-com
Copy link

lgtm-com bot commented May 15, 2022

This pull request fixes 1 alert when merging 4fa4770 into 85231de - view on LGTM.com

fixed alerts:

  • 1 for Unused variable, import, function or class

@ChiaMineJP ChiaMineJP force-pushed the keep-service-running-after-app-closes branch from 4fa4770 to d166c38 Compare December 8, 2023 16:13
@ChiaMineJP ChiaMineJP changed the base branch from main to release/2.1.2 December 8, 2023 16:13
@ChiaMineJP ChiaMineJP requested a review from paninaro December 8, 2023 16:21
@ChiaMineJP ChiaMineJP changed the base branch from release/2.1.2 to main December 9, 2023 00:29
@ChiaMineJP ChiaMineJP added the PR ready Pull Request already created label Dec 9, 2023
Copy link
Contributor

@paninaro paninaro left a comment

Choose a reason for hiding this comment

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

Tested, works great! Thanks @ChiaMineJP!

@paninaro paninaro merged commit 481690a into main Dec 11, 2023
9 checks passed
@paninaro paninaro deleted the keep-service-running-after-app-closes branch December 11, 2023 20:03
altendky added a commit that referenced this pull request Feb 21, 2024
Starttoaster pushed a commit that referenced this pull request Feb 21, 2024
* Revert "Merge pull request #2269 from Chia-Network/cmj.fix-electron-not-closing"

This reverts commit bda1eab, reversing
changes made to abb10ab.

* Revert "Merge pull request #2268 from Chia-Network/cmj.spawn-detached-daemon"

This reverts commit abb10ab, reversing
changes made to b8dbb83.

* Revert "Added checkbox for keeping service running background after GUI closes (#670)"

This reverts commit 481690a.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR ready Pull Request already created
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants