linux: Hide Install CLI from welcome (#14506)
Release Notes: - linux: Remove "Install CLI" from welcome, it is not necessary
This commit is contained in:
parent
868455f978
commit
b58abb171f
1 changed files with 16 additions and 14 deletions
|
@ -123,20 +123,22 @@ impl Render for WelcomePage {
|
||||||
.ok();
|
.ok();
|
||||||
})),
|
})),
|
||||||
)
|
)
|
||||||
.child(
|
.when(cfg!(target_os = "macos"), |el| {
|
||||||
Button::new("install-cli", "Install the CLI")
|
el.child(
|
||||||
.full_width()
|
Button::new("install-cli", "Install the CLI")
|
||||||
.on_click(cx.listener(|this, _, cx| {
|
.full_width()
|
||||||
this.telemetry.report_app_event(
|
.on_click(cx.listener(|this, _, cx| {
|
||||||
"welcome page: install cli".to_string(),
|
this.telemetry.report_app_event(
|
||||||
);
|
"welcome page: install cli".to_string(),
|
||||||
cx.app_mut()
|
);
|
||||||
.spawn(|cx| async move {
|
cx.app_mut()
|
||||||
install_cli::install_cli(&cx).await
|
.spawn(|cx| async move {
|
||||||
})
|
install_cli::install_cli(&cx).await
|
||||||
.detach_and_log_err(cx);
|
})
|
||||||
})),
|
.detach_and_log_err(cx);
|
||||||
)
|
})),
|
||||||
|
)
|
||||||
|
})
|
||||||
.child(
|
.child(
|
||||||
Button::new("sign-in-to-copilot", "Sign in to GitHub Copilot")
|
Button::new("sign-in-to-copilot", "Sign in to GitHub Copilot")
|
||||||
.full_width()
|
.full_width()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue