aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/render.rs
diff options
context:
space:
mode:
authorakbash <akbash@herdr.dev>2026-09-09 02:35:31 +0300
committerGitHub <noreply@github.com>2026-09-09 02:35:31 +0300
commitb9ce96869e89937278d673d70ae4c135dd318469 (patch)
treefea7e39dad42f8cad1f1846af6babda546c1fa78 /src/client/shell/render.rs
parent8be4cf765afddfd9cf3206602ba4dab682a29fa1 (diff)
feat: navigate and highlight workspaces across machines (#3755)
* fix: highlight workspace navigation with saved machines refs #3754 * feat: navigate workspaces across connected machines refs #3754 * feat: navigate workspaces across machines refs #3754 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
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 {