Skip to content

Commit

Permalink
Force close app
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingpie committed May 20, 2024
1 parent 7f7172c commit af2c075
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ public void Dispose()

public Task StartAsync(CancellationToken cancellationToken)
{
_icon = new TrayIcon((s, a) => _lifetime.StopApplication());
_icon = new TrayIcon((s, a) =>
{
_lifetime.StopApplication();
// TODO: Remove this, though currently not all threads exit properly.
Application.Exit();
});

return Task.CompletedTask;
}
Expand Down

0 comments on commit af2c075

Please sign in to comment.