Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

linux: Allow skipping "Unsupported GPU" warning (#15271)

CharlesChen08234d56252baee9
diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs
index e93be8fd3f3..7d3b5050a8d 100644
--- a/crates/zed/src/zed.rs
+++ b/crates/zed/src/zed.rs
@@ -171,9 +171,9 @@ pub fn initialize_workspace(app_state: Arc<AppState>, cx: &mut AppContext) {
For troubleshooting see: https://zed.dev/docs/linux
"#}, specs.device_name);
let prompt = cx.prompt(PromptLevel::Critical, "Unsupported GPU", Some(&message),
- &["Troubleshoot and Quit"]);
+ &["Skip", "Troubleshoot and Quit"]);
cx.spawn(|_, mut cx| async move {
- if prompt.await == Ok(0) {
+ if prompt.await == Ok(1) {
cx.update(|cx| {
cx.open_url("https://zed.dev/docs/linux#zed-fails-to-open-windows");
cx.quit();