From 593ad7ad12b9f48e494df3714421f095030434eb Mon Sep 17 00:00:00 2001 From: jeffvli Date: Mon, 15 Dec 2025 11:25:51 -0800 Subject: [PATCH] allow custom message on restart toast --- src/renderer/features/settings/restart-toast.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/renderer/features/settings/restart-toast.ts b/src/renderer/features/settings/restart-toast.ts index 5c5b6907b..09379b3fd 100644 --- a/src/renderer/features/settings/restart-toast.ts +++ b/src/renderer/features/settings/restart-toast.ts @@ -5,13 +5,15 @@ import { toast } from '/@/shared/components/toast/toast'; const ipc = isElectron() ? window.api.ipc : null; -export const openRestartRequiredToast = () => { - return toast.info({ +export const openRestartRequiredToast = (message?: string) => { + return toast.warn({ autoClose: false, id: 'restart-toast', - message: t('common.forceRestartRequired', { - postProcess: 'sentenceCase', - }), + message: + message || + t('common.forceRestartRequired', { + postProcess: 'sentenceCase', + }), onClose: () => { ipc?.send('app-restart'); },