From 4d56252baee92b76f6593e678ddf1af86ae7bbd2 Mon Sep 17 00:00:00 2001 From: CharlesChen0823 Date: Sat, 27 Jul 2024 00:26:14 +0800 Subject: [PATCH] linux: Allow skipping "Unsupported GPU" warning (#15271) I just want using Zed in virtual machine, current implement must read code and set env `ZED_ALLOW_EMULATED_GPU` then can work. Release Notes: - N/A --- crates/zed/src/zed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index e93be8fd3f..7d3b5050a8 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -171,9 +171,9 @@ pub fn initialize_workspace(app_state: Arc, 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();