8000 Change "save pour only" to "save post-heating only" by tpict · Pull Request #161 · obiwan007/despresso · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Change "save pour only" to "save post-heating only" #161

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 2 commits into from
Sep 7, 2023

Conversation

tpict
Copy link
Collaborator
@tpict tpict commented Sep 3, 2023

As discussed, this changes the "save pre-pouring" option to "save heating phase", and disables it by default. Now the default behavior matches that of the TCL app (save preinfusion & pour) and you can opt-in to saving the heating phase.

cs.shotstates.addAll(
shotList.entries.where((element) => (element.isPouring == true || save) && element.isInterpolated == false));
shotList.entries.where((element) => element.isInterpolated == false));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No additional filtering is required here, since the heating phase gets wiped out in the main loop if the user hasn't opted in to saving it.

@obiwan007 obiwan007 merged commit 1b2300a into main Sep 7, 2023
@obiwan007 obiwan007 deleted the tpict/save-preinfusion branch September 7, 2023 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0