mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-13 20:10:07 +02:00
add migration to clear all original store settings (#1396)
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user