improve macos experience

This commit is contained in:
josc146
2024-02-05 00:25:04 +08:00
parent f1986fa9d0
commit d5cca4e542
4 changed files with 40 additions and 15 deletions

View File

@@ -419,7 +419,8 @@ const LoraFinetune: FC = observer(() => {
outputPrefix,
dataParams.vocabPath).then(async () => {
if (!await FileExists(outputPrefix + '_text_document.idx')) {
toast(t('Failed to convert data') + ' - ' + await GetPyError(), { type: 'error' });
if (commonStore.platform === 'windows' || commonStore.platform === 'linux')
toast(t('Failed to convert data') + ' - ' + await GetPyError(), { type: 'error' });
} else {
toast(t('Convert Data successfully'), { type: 'success' });
}