Display warning in titlebar when Zed is out-of-date

This commit is contained in:
Antonio Scandurra
2021-09-23 15:36:32 +02:00
parent 511cbaa2bd
commit 374b05a379
3 changed files with 13 additions and 1 deletions
+10
View File
@@ -1041,6 +1041,16 @@ impl Workspace {
.with_style(theme.workspace.titlebar.offline_icon.container)
.boxed(),
),
rpc::Status::UpgradeRequired => Some(
Label::new(
"Please update Zed to collaborate".to_string(),
theme.workspace.titlebar.outdated_warning.text.clone(),
)
.contained()
.with_style(theme.workspace.titlebar.outdated_warning.container)
.aligned()
.boxed(),
),
_ => None,
}
}