added notification system for file downloads and pair requests

This commit is contained in:
choco
2025-10-06 16:14:34 +02:00
parent ca70c622bc
commit 090b81c989
13 changed files with 960 additions and 46 deletions

View File

@@ -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) =>