mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 11:22:27 +03:00
Differentiate preview channel in 'about zed' dialog
This commit is contained in:
parent
22db5bffe8
commit
1cdd3c0e28
@ -9,6 +9,7 @@ use anyhow::{anyhow, Context, Result};
|
|||||||
use assets::Assets;
|
use assets::Assets;
|
||||||
use breadcrumbs::Breadcrumbs;
|
use breadcrumbs::Breadcrumbs;
|
||||||
pub use client;
|
pub use client;
|
||||||
|
use client::PREVIEW_CHANNEL;
|
||||||
use collab_ui::{CollabTitlebarItem, ToggleCollaborationMenu};
|
use collab_ui::{CollabTitlebarItem, ToggleCollaborationMenu};
|
||||||
use collections::VecDeque;
|
use collections::VecDeque;
|
||||||
pub use editor;
|
pub use editor;
|
||||||
@ -377,9 +378,11 @@ fn quit(_: &Quit, cx: &mut gpui::MutableAppContext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn about(_: &mut Workspace, _: &About, cx: &mut gpui::ViewContext<Workspace>) {
|
fn about(_: &mut Workspace, _: &About, cx: &mut gpui::ViewContext<Workspace>) {
|
||||||
|
let channel = if *PREVIEW_CHANNEL { "Preview " } else { "" };
|
||||||
|
let version = env!("CARGO_PKG_VERSION");
|
||||||
cx.prompt(
|
cx.prompt(
|
||||||
gpui::PromptLevel::Info,
|
gpui::PromptLevel::Info,
|
||||||
&format!("Zed {}", env!("CARGO_PKG_VERSION")),
|
&format!("Zed {channel}{version}"),
|
||||||
&["OK"],
|
&["OK"],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user