feature: auto-select the first change when selected stash changed (#1019)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-02-25 11:09:12 +08:00
parent c6747f72f9
commit 4d740f4731

View File

@@ -89,7 +89,7 @@ namespace SourceGit.ViewModels
private set
{
if (SetProperty(ref _changes, value))
SelectedChange = null;
SelectedChange = value is { Count: >0 } ? value[0] : null;
}
}