From 0af2d24b4c3e862b37d443326c3589de5a448cd6 Mon Sep 17 00:00:00 2001 From: Martin Barker Date: Sat, 28 Jan 2023 15:32:59 +0000 Subject: [PATCH] Fixed the Clean up system so that is actually cleans up the stream thumbnails --- TwitchDesktopNotifications/Core/Notification.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/TwitchDesktopNotifications/Core/Notification.cs b/TwitchDesktopNotifications/Core/Notification.cs index d2141da..a960ca5 100644 --- a/TwitchDesktopNotifications/Core/Notification.cs +++ b/TwitchDesktopNotifications/Core/Notification.cs @@ -97,6 +97,14 @@ namespace TwitchDesktopNotifications.Core File.Delete(FilePath + "/" + fileNameThumbnailPic); }catch(Exception) { } }; + toast.Activated += (ToastNotification sender, object args) => + { + try + { + File.Delete(FilePath + "/" + fileNameThumbnailPic); + } + catch (Exception) { } + }; }); } }