Skip to content

Commit 6d012b1

Browse files
committed
Do not unselect branch if clicked again
1 parent 6809b40 commit 6d012b1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

apps/desktop/src/components/BranchList.svelte

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,8 @@
180180
trackingBranch={branch.remoteTrackingBranch ?? undefined}
181181
readonly={!!branch.remoteTrackingBranch}
182182
onclick={() => {
183-
if (selection.current?.branchName === branchName && !selection.current.commitId) {
184-
uiState.stack(stackId).selection.set(undefined);
185-
} else {
186-
uiState.stack(stackId).selection.set({ branchName });
187-
intelligentScrollingService.show(projectId, stackId, 'details');
188-
}
183+
uiState.stack(stackId).selection.set({ branchName });
184+
intelligentScrollingService.show(projectId, stackId, 'details');
189185
onselect?.();
190186
}}
191187
>

0 commit comments

Comments
 (0)