summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBrendan Allan <[email protected]>2025-12-10 11:31:50 +0800
committerBrendan Allan <[email protected]>2025-12-10 11:31:50 +0800
commit661122bab84b49f113bdf96a346b80440006b26e (patch)
treeb3e2773256adda222155bb35415f900762eda822
parent4a96836d113b6e051e6f83a5be529490edd41d07 (diff)
downloadopencode-661122bab84b49f113bdf96a346b80440006b26e.tar.gz
opencode-661122bab84b49f113bdf96a346b80440006b26e.zip
tauri: don't ask to restart separately in updater
-rw-r--r--packages/tauri/src/updater.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/tauri/src/updater.ts b/packages/tauri/src/updater.ts
index eff93d8cd..870e534a8 100644
--- a/packages/tauri/src/updater.ts
+++ b/packages/tauri/src/updater.ts
@@ -20,7 +20,7 @@ export async function runUpdater(onDownloadEvent?: (progress: DownloadEvent) =>
return false
}
- const shouldUpdate = await ask(`Version ${update.version} of OpenCode is available, would you like to install it?`)
+ const shouldUpdate = await ask(`Version ${update.version} of OpenCode has been downloaded, would you like to install it and relaunch?`)
if (!shouldUpdate) return
try {
@@ -30,8 +30,7 @@ export async function runUpdater(onDownloadEvent?: (progress: DownloadEvent) =>
return false
}
- const shouldRestart = await ask("Update installed successfully, would you like to restart OpenCode?")
- if (shouldRestart) await relaunch()
+ await relaunch()
return true
}