added notification system for file downloads and pair requests
This commit is contained in:
@@ -22,7 +22,8 @@ public sealed class UiService : DisposableMediatorSubscriberBase
|
||||
LightlessConfigService lightlessConfigService, WindowSystem windowSystem,
|
||||
IEnumerable<WindowMediatorSubscriberBase> windows,
|
||||
UiFactory uiFactory, FileDialogManager fileDialogManager,
|
||||
LightlessMediator lightlessMediator) : base(logger, lightlessMediator)
|
||||
LightlessMediator lightlessMediator,
|
||||
LightlessNotificationService lightlessNotificationService) : base(logger, lightlessMediator)
|
||||
{
|
||||
_logger = logger;
|
||||
_logger.LogTrace("Creating {type}", GetType().Name);
|
||||
@@ -40,6 +41,12 @@ public sealed class UiService : DisposableMediatorSubscriberBase
|
||||
foreach (var window in windows)
|
||||
{
|
||||
_windowSystem.AddWindow(window);
|
||||
|
||||
// Connect the notification service to the notification UI
|
||||
if (window is LightlessNotificationUI notificationUI)
|
||||
{
|
||||
lightlessNotificationService.SetNotificationUI(notificationUI);
|
||||
}
|
||||
}
|
||||
|
||||
Mediator.Subscribe<ProfileOpenStandaloneMessage>(this, (msg) =>
|
||||
|
||||
Reference in New Issue
Block a user