enhance: notification popup

This commit is contained in:
leo 2024-12-13 10:06:28 +08:00
parent 6eb226eb44
commit 02658839c2
No known key found for this signature in database
3 changed files with 23 additions and 5 deletions

View file

@ -32,6 +32,14 @@ namespace SourceGit.Views
OnPopupCancel(sender, e);
}
private void OnCopyNotification(object sender, RoutedEventArgs e)
{
if (sender is Button { DataContext: Models.Notification notice })
App.CopyText(notice.Message);
e.Handled = true;
}
private void OnDismissNotification(object sender, RoutedEventArgs e)
{
if (sender is Button { DataContext: Models.Notification notice } &&