chore: generate
This commit is contained in:
@@ -128,26 +128,25 @@ export const SettingsGeneral: Component = () => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const actions =
|
const actions = platform.updateAndRestart
|
||||||
platform.updateAndRestart
|
? [
|
||||||
? [
|
{
|
||||||
{
|
label: language.t("toast.update.action.installRestart"),
|
||||||
label: language.t("toast.update.action.installRestart"),
|
onClick: async () => {
|
||||||
onClick: async () => {
|
await platform.updateAndRestart!()
|
||||||
await platform.updateAndRestart!()
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
label: language.t("toast.update.action.notYet"),
|
{
|
||||||
onClick: "dismiss" as const,
|
label: language.t("toast.update.action.notYet"),
|
||||||
},
|
onClick: "dismiss" as const,
|
||||||
]
|
},
|
||||||
: [
|
]
|
||||||
{
|
: [
|
||||||
label: language.t("toast.update.action.notYet"),
|
{
|
||||||
onClick: "dismiss" as const,
|
label: language.t("toast.update.action.notYet"),
|
||||||
},
|
onClick: "dismiss" as const,
|
||||||
]
|
},
|
||||||
|
]
|
||||||
|
|
||||||
showToast({
|
showToast({
|
||||||
persistent: true,
|
persistent: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user