Skip to content

Commit

Permalink
Update src/CommunityToolkit.Maui/Alerts/Snackbar/Snackbar.tizen.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
  • Loading branch information
VladislavAntonyuk and pictos authored Oct 16, 2022
1 parent 4cfe693 commit e212b87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Task ShowPlatform(CancellationToken token)
var dispatcher = Dispatcher.GetForCurrentThread() ?? Application.Current?.Dispatcher ?? throw new InvalidOperationException($"There is no IDispatcher object, application is not initalized");

// close and cleanup the previously opened snackbar
if (PopupStatic != null && PopupStatic.IsOpen)
if (PopupStatic is not null && PopupStatic.IsOpen)
{
PopupStatic.Close();
PopupStatic.Dispose();
Expand Down

0 comments on commit e212b87

Please sign in to comment.