mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: some more notifications for plugin operations
This commit is contained in:
parent
f373d56b9c
commit
adbf9b2bb0
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue