remove unncessary sha1 dictionary, use new notification management
This commit is contained in:
@@ -49,7 +49,7 @@ public record RemoveWatchedGameObjectHandler(GameObjectHandler Handler) : Messag
|
||||
public record HaltScanMessage(string Source) : MessageBase;
|
||||
public record ResumeScanMessage(string Source) : MessageBase;
|
||||
public record NotificationMessage
|
||||
(string Title, string Message, NotificationType Type, uint TimeShownOnScreen = 3000) : MessageBase;
|
||||
(string Title, string Message, NotificationType Type, TimeSpan? TimeShownOnScreen = null) : MessageBase;
|
||||
public record CreateCacheForObjectMessage(GameObjectHandler ObjectToCreateFor) : MessageBase;
|
||||
public record ClearCacheForObjectMessage(GameObjectHandler ObjectToCreateFor) : MessageBase;
|
||||
public record CharacterDataCreatedMessage(CharacterData CharacterData) : SameThreadMessage;
|
||||
|
||||
@@ -108,12 +108,13 @@ public class NotificationService : DisposableMediatorSubscriberBase
|
||||
|
||||
private void ShowToast(NotificationMessage msg)
|
||||
{
|
||||
var notification = new Notification{
|
||||
_notificationManager.AddNotification(new Dalamud.Interface.ImGuiNotification.Notification()
|
||||
{
|
||||
Content = msg.Message ?? string.Empty,
|
||||
Title = "[LoporritSync] " + msg.Title,
|
||||
Title = msg.Title,
|
||||
Type = msg.Type,
|
||||
InitialDuration = TimeSpan.FromMilliseconds(msg.TimeShownOnScreen)
|
||||
};
|
||||
_notificationManager.AddNotification(notification);
|
||||
Minimized = false,
|
||||
InitialDuration = msg.TimeShownOnScreen ?? TimeSpan.FromSeconds(3)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@ public class PluginWarningNotificationService
|
||||
{
|
||||
_mediator.Publish(new NotificationMessage("Missing plugins for " + playerName,
|
||||
$"Received data for {playerName} that contained information for plugins you have not installed. Install {string.Join(", ", missingPluginsForData)} to experience their character fully.",
|
||||
NotificationType.Warning, 10000));
|
||||
NotificationType.Warning, TimeSpan.FromSeconds(10)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user