Skip to content

Commit 4d740f4

Browse files
committed
feature: auto-select the first change when selected stash changed (#1019)
Signed-off-by: leo <[email protected]>
1 parent c6747f7 commit 4d740f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewModels/StashesPage.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public List<Models.Change> Changes
8989
private set
9090
{
9191
if (SetProperty(ref _changes, value))
92-
SelectedChange = null;
92+
SelectedChange = value is { Count: >0 } ? value[0] : null;
9393
}
9494
}
9595

0 commit comments

Comments
 (0)