Browse Source

Improved note editor

Kenric Nugteren 1 year ago
parent
commit
b6b6fb5428
1 changed files with 4 additions and 1 deletions
  1. 4 1
      prs.desktop/Panels/DataEntry/DataEntryList.xaml.cs

+ 4 - 1
prs.desktop/Panels/DataEntry/DataEntryList.xaml.cs

@@ -585,7 +585,10 @@ public partial class DataEntryList : UserControl, ICorePanel, IDockPanel
 
     private void _changeNote_Click(object sender, RoutedEventArgs e)
     {
-        string note = "";
+        var notes = _dataEntryGrid.SelectedRows.ToObjects<DataEntryDocument>().Select(x => x.Note).Distinct().ToArray();
+
+        var note = notes.Length == 1 ? notes[0] : "";
+
         if(TextEdit.Execute("Enter note:", ref note))
         {
             _dataEntryGrid.DoChangeNote(note);