This repository has been archived on 2025-07-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
EnvyUpdate/EnvyUpdate/Notify.cs

21 lines
No EOL
540 B
C#

using Microsoft.Toolkit.Uwp.Notifications;
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);
}
}
}
}