Make it a bit clearer when people are running dev builds (#24457)
Release Notes: - Include an indicator in About/CopySystemSpecs when running in debug mode
This commit is contained in:
parent
144487bf1a
commit
a6e15dda4b
2 changed files with 13 additions and 3 deletions
|
@ -881,7 +881,12 @@ fn about(
|
|||
) {
|
||||
let release_channel = ReleaseChannel::global(cx).display_name();
|
||||
let version = env!("CARGO_PKG_VERSION");
|
||||
let message = format!("{release_channel} {version}");
|
||||
let debug = if cfg!(debug_assertions) {
|
||||
"(debug)"
|
||||
} else {
|
||||
""
|
||||
};
|
||||
let message = format!("{release_channel} {version} {debug}");
|
||||
let detail = AppCommitSha::try_global(cx).map(|sha| sha.0.clone());
|
||||
|
||||
let prompt = window.prompt(PromptLevel::Info, &message, detail.as_deref(), &["OK"], cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue