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

Cleanup toast loop #37

Merged
merged 1 commit into from
Dec 24, 2024
Merged

Cleanup toast loop #37

merged 1 commit into from
Dec 24, 2024

Conversation

StarStarJ
Copy link
Contributor

@StarStarJ StarStarJ commented Dec 22, 2024

This unifies most of the toast logic into one retain call.

The motivation for this is related to #35.

Since dismisses have an animation, I check every frame whether the limit of notifications is reached and dismiss if so.

However if a toast has disappeared the old implementation called retain only in the next frame. Thus I was always overriding the disappeared state back to disappear.

As far as I can see from starting the example this is just as good. Why the dismiss (the variable) checked after the loop was not clear to me.

@ItsEthra
Copy link
Owner

Thanks.

@ItsEthra ItsEthra merged commit 3a25512 into ItsEthra:master Dec 24, 2024
1 check passed
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