Wrap in case something goes wrong

This commit is contained in:
seerge
2023-02-24 17:26:53 +01:00
parent 4630fee687
commit d02703cf1c
2 changed files with 8 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
namespace OSD

View File

@@ -420,7 +420,13 @@ namespace GHelper
fans.LoadFans();
if (notify) {
Program.toast.RunToast(perfName);
try
{
Program.toast.RunToast(perfName);
} catch
{
Debug.WriteLine("Toast error");
}
}
}