diff options
| author | Brendan Allan <[email protected]> | 2026-04-24 13:27:36 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-24 13:27:36 +0800 |
| commit | 2e156b8990a1e72cfb231eadafe76e4e60c096ea (patch) | |
| tree | 1a68b80f480b5f6327f77115571699054e76519a /packages/app/src/context | |
| parent | 3bfe6a1ef6cf41bc7f05339d63ab8d6032c6e8e1 (diff) | |
| download | opencode-2e156b8990a1e72cfb231eadafe76e4e60c096ea.tar.gz opencode-2e156b8990a1e72cfb231eadafe76e4e60c096ea.zip | |
fix(desktop): avoid relaunching without installing updates (#23806)
Diffstat (limited to 'packages/app/src/context')
| -rw-r--r-- | packages/app/src/context/platform.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/app/src/context/platform.tsx b/packages/app/src/context/platform.tsx index 3bdc46391..fd89bf51b 100644 --- a/packages/app/src/context/platform.tsx +++ b/packages/app/src/context/platform.tsx @@ -49,11 +49,11 @@ export type Platform = { /** Storage mechanism, defaults to localStorage */ storage?: (name?: string) => SyncStorage | AsyncStorage - /** Check for updates (Tauri only) */ + /** Check for a downloadable desktop update */ checkUpdate?(): Promise<UpdateInfo> - /** Install updates (Tauri only) */ - update?(): Promise<void> + /** Install the downloaded update using the platform restart flow */ + updateAndRestart?(): Promise<void> /** Fetch override */ fetch?: typeof fetch |
