add migration to clear all original store settings (#1396)

This commit is contained in:
jeffvli
2025-12-15 19:07:12 -08:00
parent 614761efd7
commit 96d2699a2d
5 changed files with 36 additions and 4 deletions
@@ -94,10 +94,25 @@ export const CacheSettings = () => {
},
];
const handleOpenApplicationDirectory = async () => {
if (isElectron() && window.api?.utils) {
await window.api.utils.openApplicationDirectory();
}
};
return (
<SettingsSection
options={options}
title={t('page.setting.cache', { postProcess: 'sentenceCase' })}
/>
<>
<SettingsSection
options={options}
title={t('page.setting.cache', { postProcess: 'sentenceCase' })}
/>
{isElectron() && (
<Button onClick={handleOpenApplicationDirectory} variant="default">
{t('action.openApplicationDirectory', {
postProcess: 'sentenceCase',
})}
</Button>
)}
</>
);
};