mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-22 10:55:00 +00:00
Clean
This commit is contained in:
parent
75b15c455e
commit
f8faf1ba26
2 changed files with 0 additions and 4 deletions
|
@ -66,15 +66,12 @@ namespace SourceGit.Views
|
|||
{
|
||||
base.OnDataContextChanged(e);
|
||||
|
||||
// When the DataContext changes, we need to re-evaluate any bindings
|
||||
// This ensures that when the Commit property changes, the UI is updated
|
||||
if (DataContext is ViewModels.CommitDetail detail)
|
||||
{
|
||||
detail.PropertyChanged += (s, e) =>
|
||||
{
|
||||
if (e.PropertyName == nameof(detail.Commit))
|
||||
{
|
||||
// Force UI update for the commit lines
|
||||
InvalidateVisual();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue