add notification exception handling
This commit is contained in:
parent
19cf5fb38e
commit
8ce6a92146
1 changed files with 10 additions and 3 deletions
|
@ -6,9 +6,16 @@ namespace EnvyUpdate
|
||||||
{
|
{
|
||||||
public static void ShowDrivUpdatePopup()
|
public static void ShowDrivUpdatePopup()
|
||||||
{
|
{
|
||||||
var toast = new ToastContentBuilder();
|
try
|
||||||
toast.AddText(Properties.Resources.update_popup_message);
|
{
|
||||||
toast.Show();
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in a new issue