add notification exception handling

This commit is contained in:
Jakob 2024-02-24 13:44:34 +01:00
parent 19cf5fb38e
commit 8ce6a92146

View file

@ -5,10 +5,17 @@ namespace EnvyUpdate
internal class Notify
{
public static void ShowDrivUpdatePopup()
{
try
{
var toast = new ToastContentBuilder();
toast.AddText(Properties.Resources.update_popup_message);
toast.Show();
}
catch (System.Exception ex)
{
Debug.LogToFile("WARN Could not show notification. Error: " + ex.Message);
}
}
}
}