From adbf9b2bb05fb2f18623ce754fe5fe394ba2800f Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Mon, 16 Aug 2021 22:55:53 +0200 Subject: [PATCH] feat: some more notifications for plugin operations --- Dalamud/Game/ChatHandlers.cs | 2 ++ Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dalamud/Game/ChatHandlers.cs b/Dalamud/Game/ChatHandlers.cs index 9c4bc5559..165633627 100644 --- a/Dalamud/Game/ChatHandlers.cs +++ b/Dalamud/Game/ChatHandlers.cs @@ -9,6 +9,7 @@ using CheapLoc; using Dalamud.Game.Text; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Game.Text.SeStringHandling.Payloads; +using Dalamud.Interface.Internal; using Serilog; namespace Dalamud.Game @@ -278,6 +279,7 @@ namespace Dalamud.Game if (this.dalamud.Configuration.AutoUpdatePlugins) { this.dalamud.PluginManager.PrintUpdatedPlugins(updatedPlugins, Loc.Localize("DalamudPluginAutoUpdate", "Auto-update:")); + this.dalamud.InterfaceManager.Notifications.AddNotification(Loc.Localize("NotificationUpdatedPlugins", "{0} of your plugins were updated."), Loc.Localize("NotificationAutoUpdate", "Auto-Update"), Notifications.Notification.Type.Info); } else { diff --git a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs index ba72e7b6b..20a16c98d 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs @@ -989,6 +989,8 @@ namespace Dalamud.Interface.Internal.Windows { this.dalamud.PluginManager.RemovePlugin(plugin); } + + this.dalamud.InterfaceManager.Notifications.AddNotification($"'{plugin.Manifest.Name}' was disabled.", "Plugin disabled!", Notifications.Notification.Type.Success); }); } }