Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 00beb4f

Browse files
marcobeltempojasonLaster
authored andcommitted
Toggles the "start" panel if it's closed after selecting "Reveal in tree" from context menu (#5885)
1 parent d32e79e commit 00beb4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/actions/ui.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ export function showSource(sourceId: string) {
6868
return ({ dispatch, getState }: ThunkArgs) => {
6969
const source = getSource(getState(), sourceId);
7070

71+
if (getPaneCollapse(getState(), "start")) {
72+
dispatch({
73+
type: "TOGGLE_PANE",
74+
position: "start",
75+
paneCollapsed: false
76+
});
77+
}
78+
7179
dispatch(setPrimaryPaneTab("sources"));
7280
dispatch({
7381
type: "SHOW_SOURCE",

0 commit comments

Comments
 (0)