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

Allow disposing multiple times #2722

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

SlowLogicBoy
Copy link
Contributor

I use dependency injection.

As per Disposable pattern Dispose method can be called multiple times however, once DependencyInjection calls Wiget.Dispose it crashes, because Handler property checks if it's already disposed.

As I understand Application disposes all of it's widgets and cannot be called 2nd time which is done by DependencyInjection.

@cwensley
Copy link
Member

Looks great, thanks for catching that @SlowLogicBoy!

@cwensley cwensley added the bug label Jan 15, 2025
@cwensley cwensley added this to the 2.9.1 milestone Jan 15, 2025
@cwensley cwensley merged commit 5545a4d into picoe:develop Jan 15, 2025
3 checks passed
@SlowLogicBoy SlowLogicBoy deleted the patch-1 branch January 16, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants