2.0.0 #92
@@ -66,6 +66,14 @@ public class DownloadUi : WindowMediatorSubscriberBase
|
|||||||
Mediator.Subscribe<DownloadFinishedMessage>(this, (msg) =>
|
Mediator.Subscribe<DownloadFinishedMessage>(this, (msg) =>
|
||||||
{
|
{
|
||||||
_currentDownloads.TryRemove(msg.DownloadId, out _);
|
_currentDownloads.TryRemove(msg.DownloadId, out _);
|
||||||
|
|
||||||
|
// Dismiss notification if all downloads are complete
|
||||||
|
if (!_currentDownloads.Any() && !_notificationDismissed)
|
||||||
|
{
|
||||||
|
Mediator.Publish(new LightlessNotificationDismissMessage("pair_download_progress"));
|
||||||
|
_notificationDismissed = true;
|
||||||
|
_lastDownloadStateHash = 0;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Mediator.Subscribe<GposeStartMessage>(this, (_) => IsOpen = false);
|
Mediator.Subscribe<GposeStartMessage>(this, (_) => IsOpen = false);
|
||||||
Mediator.Subscribe<GposeEndMessage>(this, (_) => IsOpen = true);
|
Mediator.Subscribe<GposeEndMessage>(this, (_) => IsOpen = true);
|
||||||
|
|||||||
Reference in New Issue
Block a user