aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/render.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/shell/render.rs')
-rw-r--r--src/client/shell/render.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/shell/render.rs b/src/client/shell/render.rs
index bcd9e49b..d51586a0 100644
--- a/src/client/shell/render.rs
+++ b/src/client/shell/render.rs
@@ -224,7 +224,8 @@ pub(super) struct ShellRenderState<'a> {
pub(super) sidebar_collapsed: bool,
pub(super) sidebar_section_split: f32,
pub(super) tab_drag_insert_index: Option<usize>,
- pub(super) selected_workspace_id: Option<&'a str>,
+ pub(super) selected_workspace_id: Option<&'a WorkspaceNavigationTarget>,
+ pub(super) reveal_navigation_workspace: &'a mut bool,
pub(super) dragged_workspace_id: Option<&'a str>,
pub(super) workspace_drop_indicator_row: Option<u16>,
}
@@ -272,7 +273,9 @@ pub(super) fn render_shell(
layout.sidebar,
snapshot,
config,
- state.selected_workspace_id,
+ state
+ .selected_workspace_id
+ .map(|target| target.workspace_id.as_str()),
&mut hits,
);
} else {