From 22416812a0b5093fe41338178f6030eb29a4c513 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 2 Jan 2024 15:32:19 +0800 Subject: [PATCH] fix: show time of stash --- src/Views/Widgets/Stashes.xaml | 56 ++++++++++++++++++------------- src/Views/Widgets/Stashes.xaml.cs | 2 +- 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/src/Views/Widgets/Stashes.xaml b/src/Views/Widgets/Stashes.xaml index 6faf5a6c..43338ca4 100644 --- a/src/Views/Widgets/Stashes.xaml +++ b/src/Views/Widgets/Stashes.xaml @@ -66,32 +66,42 @@ - - - - - - - - - - - - - - - - - - - + SelectionMode="Single" + SelectionUnit="FullRow" + SelectedCellsChanged="OnStashSelectionChanged"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Views/Widgets/Stashes.xaml.cs b/src/Views/Widgets/Stashes.xaml.cs index 19abe242..ca02e913 100644 --- a/src/Views/Widgets/Stashes.xaml.cs +++ b/src/Views/Widgets/Stashes.xaml.cs @@ -47,7 +47,7 @@ namespace SourceGit.Views.Widgets { e.Handled = true; } - private async void OnStashSelectionChanged(object sender, SelectionChangedEventArgs e) { + private async void OnStashSelectionChanged(object sender, SelectedCellsChangedEventArgs e) { changeList.ItemsSource = null; selected = null;