opencode-agent[bot] пре 4 месеци
родитељ
комит
a08aa21cb3
1 измењених фајлова са 13 додато и 2 уклоњено
  1. 13 2
      packages/desktop-electron/src/renderer/index.tsx

+ 13 - 2
packages/desktop-electron/src/renderer/index.tsx

@@ -57,7 +57,10 @@ const createPlatform = (): Platform => {
 
 
   const isWslEnabled = async () => {
   const isWslEnabled = async () => {
     if (os !== "windows") return false
     if (os !== "windows") return false
-    return window.api.getWslConfig().then((config) => config.enabled).catch(() => false)
+    return window.api
+      .getWslConfig()
+      .then((config) => config.enabled)
+      .catch(() => false)
   }
   }
 
 
   const wslHome = async () => {
   const wslHome = async () => {
@@ -327,7 +330,15 @@ render(() => {
   return (
   return (
     <PlatformProvider value={platform}>
     <PlatformProvider value={platform}>
       <AppBaseProviders locale={locale.latest}>
       <AppBaseProviders locale={locale.latest}>
-        <Show when={!defaultServer.loading && !sidecar.loading && !windowConfig.loading && !windowCount.loading && !locale.loading}>
+        <Show
+          when={
+            !defaultServer.loading &&
+            !sidecar.loading &&
+            !windowConfig.loading &&
+            !windowCount.loading &&
+            !locale.loading
+          }
+        >
           {(_) => {
           {(_) => {
             return (
             return (
               <AppInterface
               <AppInterface