diff --git a/src/Commands/Command.cs b/src/Commands/Command.cs index 8d304410..20659082 100644 --- a/src/Commands/Command.cs +++ b/src/Commands/Command.cs @@ -74,7 +74,11 @@ public bool Exec() } if (string.IsNullOrEmpty(e.Data)) + { + errs.Add(string.Empty); return; + } + if (TraitErrorAsOutput) OnReadline(e.Data); @@ -89,6 +93,7 @@ public bool Exec() return; if (REG_PROGRESS().IsMatch(e.Data)) return; + errs.Add(e.Data); }; diff --git a/src/Views/LauncherPage.axaml b/src/Views/LauncherPage.axaml index 34e93841..d09c2c0d 100644 --- a/src/Views/LauncherPage.axaml +++ b/src/Views/LauncherPage.axaml @@ -112,19 +112,24 @@ - + - + - - - + + + + + diff --git a/src/Views/LauncherPage.axaml.cs b/src/Views/LauncherPage.axaml.cs index d37d22bd..3fa8269e 100644 --- a/src/Views/LauncherPage.axaml.cs +++ b/src/Views/LauncherPage.axaml.cs @@ -32,6 +32,14 @@ private void OnMaskClicked(object sender, PointerPressedEventArgs e) 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 } &&