mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 13:25:01 +00:00
fix(desktop): avoid relaunching without installing updates (#23806)
This commit is contained in:
@@ -129,13 +129,12 @@ export const SettingsGeneral: Component = () => {
|
||||
}
|
||||
|
||||
const actions =
|
||||
platform.update && platform.restart
|
||||
platform.updateAndRestart
|
||||
? [
|
||||
{
|
||||
label: language.t("toast.update.action.installRestart"),
|
||||
onClick: async () => {
|
||||
await platform.update!()
|
||||
await platform.restart!()
|
||||
await platform.updateAndRestart!()
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user