Add expiration
MODIFY
WalletWasabi.Gui/Helpers/NotificationHelpers.cs
WalletWasabi.Gui/Helpers/NotificationHelpers.cs
using Avalonia.Controls.Notifications;
using ReactiveUI;
using Splat;
+using System;
using System.Reactive.Concurrency;
namespace WalletWasabi.Gui.Helpers
@@ -16,28 +17,28 @@ namespace WalletWasabi.Gui.Helpers
{
RxApp.MainThreadScheduler
.Schedule(() => GetNotificationManager()
- .Show(new Notification(title, message, NotificationType.Success)));
+ .Show(new Notification(title, message, NotificationType.Success, TimeSpan.FromSeconds(7))));
}
public static void Information(string message, string title = "Info!")
{
RxApp.MainThreadScheduler
.Schedule(() => GetNotificationManager()
- .Show(new Notification(title, message, NotificationType.Information)));
+ .Show(new Notification(title, message, NotificationType.Information, TimeSpan.FromSeconds(7))));
}
public static void Warning(string message, string title = "Warning!")
{
RxApp.MainThreadScheduler
.Schedule(() => GetNotificationManager()
- .Show(new Notification(title, message, NotificationType.Warning)));
+ .Show(new Notification(title, message, NotificationType.Warning, TimeSpan.FromSeconds(7))));
}
public static void Error(string message, string title = "Error!")
{
RxApp.MainThreadScheduler
.Schedule(() => GetNotificationManager()
- .Show(new Notification(title, message, NotificationType.Error)));
+ .Show(new Notification(title, message, NotificationType.Error, TimeSpan.FromSeconds(7))));
}
}
}

Add expiration