aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/endpoints.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/shell/endpoints.rs')
-rw-r--r--src/client/shell/endpoints.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/shell/endpoints.rs b/src/client/shell/endpoints.rs
index 3d1d419b..513842ba 100644
--- a/src/client/shell/endpoints.rs
+++ b/src/client/shell/endpoints.rs
@@ -108,6 +108,9 @@ impl ClientShellState {
}
pub(crate) fn retire_endpoint(&mut self, endpoint_id: &ClientEndpointId) {
+ if endpoint_id == &self.active_endpoint_id {
+ self.pending_workspace_highlight = None;
+ }
self.retire_endpoint_notifications(endpoint_id);
if let Some(endpoint) = self
.endpoints
@@ -131,6 +134,9 @@ impl ClientShellState {
endpoint_id: &ClientEndpointId,
status: ClientEndpointStatus,
) {
+ if endpoint_id == &self.active_endpoint_id && status != ClientEndpointStatus::Online {
+ self.pending_workspace_highlight = None;
+ }
if let Some(endpoint) = self
.endpoints
.iter_mut()