Skip to content

Commit

Permalink
use IControlledApplicationLifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
danwalmsley committed Jan 3, 2022
1 parent 16597c4 commit 32bf616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Native/AvaloniaNativeMenuExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private NativeMenu CreateDefaultAppMenu()
};
quitItem.Click += (sender, args) =>
{
(Application.Current.ApplicationLifetime as IClassicDesktopStyleApplicationLifetime)?.Shutdown();
(Application.Current.ApplicationLifetime as IControlledApplicationLifetime)?.Shutdown();
};
result.Add(quitItem);
}
Expand Down

0 comments on commit 32bf616

Please sign in to comment.