reorg
This commit is contained in:
parent
68a2364de2
commit
c745aef6d7
7 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ public sealed class NotificationService
|
|||
public void Post(string message, StatusSeverity severity = StatusSeverity.Info, string? actionLabel = null, Action? action = null)
|
||||
=> Avalonia.Threading.Dispatcher.UIThread.Post(() => Show(message, severity, actionLabel, action));
|
||||
|
||||
public void Show(string message, StatusSeverity severity = StatusSeverity.Info, string? actionLabel = null, Action? action = null)
|
||||
private void Show(string message, StatusSeverity severity = StatusSeverity.Info, string? actionLabel = null, Action? action = null)
|
||||
=> NotificationRequested?.Invoke(this, new NotificationRequest(message, severity, actionLabel, action));
|
||||
|
||||
public void Hide()
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public static class ActionStatusViewModelExtensions
|
|||
if (App.Current is App app && app.ServiceProvider is { } serviceProvider)
|
||||
{
|
||||
var notificationService = serviceProvider.GetRequiredService<NotificationService>();
|
||||
notificationService.Show(normalizedMessage, severity);
|
||||
notificationService.Post(normalizedMessage, severity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue