mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
enhance: notification popup
This commit is contained in:
parent
6eb226eb44
commit
02658839c2
3 changed files with 23 additions and 5 deletions
|
@ -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 } &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue