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

Add support for multiple Toast instances with custom IDs #28

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

GodGotzi
Copy link
Contributor

@GodGotzi GodGotzi commented Sep 24, 2024

This PR introduces the ability to create multiple Toasts instances with custom IDs in the egui-toasts library. A new method with_id(id: Id) has been added to the Toasts struct, allowing developers to initialize toast groups with specific identifiers.
Key changes:

  • Added with_id(id: Id) -> Self method to the Toasts implementation.
  • This allows users to manage multiple independent toast groups within the same UI.

This change is useful for situations where toasts need to be categorized or grouped separately.

@urholaukkarinen
Copy link
Owner

Thanks!

@urholaukkarinen urholaukkarinen merged commit 561bb96 into urholaukkarinen:main Oct 5, 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