From c11e3993ea6f7e88147404cda69adafe439b33a0 Mon Sep 17 00:00:00 2001
From: glax <johanna@bernloehr.eu>
Date: Thu, 15 Jun 2023 19:02:30 +0200
Subject: [PATCH] Added successmessage to NotificationManager

---
 Tranga/TrangaSettings.cs | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Tranga/TrangaSettings.cs b/Tranga/TrangaSettings.cs
index 8273eb4..161a055 100644
--- a/Tranga/TrangaSettings.cs
+++ b/Tranga/TrangaSettings.cs
@@ -68,13 +68,17 @@ public class TrangaSettings
                 if (values.Length != 2)
                     return;
                 notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(Gotify));
-                notificationManagers.Add(new Gotify(values[0], values[1], logger));
+                Gotify newGotify = new(values[0], values[1], logger);
+                notificationManagers.Add(newGotify);
+                newGotify.SendNotification("Success!", "Gotify was added to Tranga!");
                 break;
             case UpdateField.LunaSea:
                 if(values.Length != 1)
                     return;
                 notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(LunaSea));
-                notificationManagers.Add(new LunaSea(values[0], logger));
+                LunaSea newLunaSea = new(values[0], logger);
+                notificationManagers.Add(newLunaSea);
+                newLunaSea.SendNotification("Success!", "LunaSea was added to Tranga!");
                 break;
         }
     }