Dispatch WebView2 runtime toast notification on UI thread (#811)

This commit is contained in:
Burak Kaan Köse
2026-02-16 16:32:47 +01:00
committed by GitHub
parent fec49ce6f8
commit 05112d6a35
7 changed files with 73 additions and 1 deletions
@@ -252,6 +252,18 @@ public class NotificationBuilder : INotificationBuilder
builder.Show();
}
public void CreateWebView2RuntimeMissingNotification()
{
var builder = new ToastContentBuilder();
builder.SetToastScenario(ToastScenario.Default);
builder.AddText(Translator.Exception_WebView2RuntimeMissing_Title);
builder.AddText(Translator.Exception_WebView2RuntimeMissing_Message);
builder.AddButton(GetDismissButton());
builder.Show();
}
public Task CreateCalendarReminderNotificationAsync(CalendarItem calendarItem, long reminderDurationInSeconds)
{
if (calendarItem == null)