fix mediasession controls

This commit is contained in:
jeffvli
2025-12-04 01:31:57 -08:00
parent 69fa5bc733
commit 4d626377ef
7 changed files with 98 additions and 58 deletions
@@ -0,0 +1,22 @@
import { t } from 'i18next';
import isElectron from 'is-electron';
import { toast } from '/@/shared/components/toast/toast';
const ipc = isElectron() ? window.api.ipc : null;
export const openRestartRequiredToast = () => {
return toast.info({
autoClose: false,
id: 'restart-toast',
message: t('common.forceRestartRequired', {
postProcess: 'sentenceCase',
}),
onClose: () => {
ipc?.send('app-restart');
},
title: t('common.restartRequired', {
postProcess: 'sentenceCase',
}),
});
};