Skip to content

Bug fixes#631

Merged
MattEqualsCoder merged 12 commits intomainfrom
bug-fixes
Dec 23, 2024
Merged

Bug fixes#631
MattEqualsCoder merged 12 commits intomainfrom
bug-fixes

Conversation

@MattEqualsCoder
Copy link
Collaborator

Fixes #630 and various bugs from testing (there was a lot 😬). Updated the version to be a beta as I'm hoping to put something out tomorrow if Pink wants to try it out.

CPColin
CPColin previously approved these changes Dec 23, 2024
@MattEqualsCoder MattEqualsCoder merged commit e3390ba into main Dec 23, 2024
2 checks passed
@MattEqualsCoder MattEqualsCoder deleted the bug-fixes branch December 23, 2024 14:12
private void OpenTrackerMenuItem_OnClick(object? sender, RoutedEventArgs e)
{
_service?.LaunchTracker();
_ = _service?.LaunchTracker();
Copy link
Member

Choose a reason for hiding this comment

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

I know it really doesn't matter, but C# allows for async void specifically for event handlers so you can do this with await.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've been doing that more, I think I just forgot here (or maybe I did it because technically the service can be null, so I'd have to make sure it's not null since I don't think C# likes nullable awaits).

That being said, I'm not sure if this is Rider specific or also a thing in Visual Studio, but it's started wanting try catches around the entire code in async void functions because unhandled exceptions can cause unexpected behaviors. (Well, unexpected in that async Task methods will typically silently fail on unhandled exceptions whereas async void methods will kill the entire application.)

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.

Clearing multiple locations with only dungeon items leads to crash

3 participants

Comments