File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ export const SettingsGeneral: Component = () => {
431431
432432 < SoundsSection />
433433
434- < Show when = { platform . platform === "desktop" && platform . os === "windows" && platform . getWslEnabled } >
434+ { /* <Show when={platform.platform === "desktop" && platform.os === "windows" && platform.getWslEnabled}>
435435 {(_) => {
436436 const [enabledResource, actions] = createResource(() => platform.getWslEnabled?.())
437437 const enabled = () => (enabledResource.state === "pending" ? undefined : enabledResource.latest)
@@ -457,7 +457,7 @@ export const SettingsGeneral: Component = () => {
457457 </div>
458458 )
459459 }}
460- </ Show >
460+ </Show>*/ }
461461
462462 < UpdatesSection />
463463
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ use std::os::unix::process::ExitStatusExt;
99use std:: sync:: Arc ;
1010use std:: { process:: Stdio , time:: Duration } ;
1111use tauri:: { AppHandle , Manager , path:: BaseDirectory } ;
12- use tauri_plugin_store:: StoreExt ;
1312use tauri_specta:: Event ;
1413use tokio:: {
1514 io:: { AsyncBufRead , AsyncBufReadExt , BufReader } ,
@@ -20,7 +19,6 @@ use tokio::{
2019use tokio_stream:: wrappers:: ReceiverStream ;
2120use tracing:: Instrument ;
2221
23- use crate :: constants:: { SETTINGS_STORE , WSL_ENABLED_KEY } ;
2422
2523const CLI_INSTALL_DIR : & str = ".opencode/bin" ;
2624const CLI_BINARY_NAME : & str = "opencode" ;
@@ -202,16 +200,8 @@ fn get_user_shell() -> String {
202200 std:: env:: var ( "SHELL" ) . unwrap_or_else ( |_| "/bin/sh" . to_string ( ) )
203201}
204202
205- fn is_wsl_enabled ( app : & tauri:: AppHandle ) -> bool {
206- let Ok ( store) = app. store ( SETTINGS_STORE ) else {
207- return false ;
208- } ;
209-
210- store
211- . get ( WSL_ENABLED_KEY )
212- . as_ref ( )
213- . and_then ( |value| value. as_bool ( ) )
214- . unwrap_or ( false )
203+ fn is_wsl_enabled ( _app : & tauri:: AppHandle ) -> bool {
204+ false
215205}
216206
217207fn shell_escape ( input : & str ) -> String {
You can’t perform that action at this time.
0 commit comments