fix(DanaKit): prevent app crash during pump deletion by bastiaanv · Pull Request #308 · LoopKit/LoopWorkspace

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@bastiaanv

Copy link

Contributor

The app crash was caused by Loop trying to dismiss a UI element without running on the main thread.
Simple fix was implemented to move the code to the main thread before running: completionDelegate.completionNotifyingDidComplete(self)

Copy link

Contributor

@marionbarker marionbarker left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. I confirmed this works as expected when adding and removing a Dana pump using the Dana simulator.

@marionbarker marionbarker merged commit 310263e into LoopKit:feat/dana

Aug 12, 2025

@marionbarker marionbarker mentioned this pull request

Aug 13, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@marionbarker marionbarker marionbarker approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@bastiaanv @marionbarker