This commit is contained in:
josc146 2023-06-03 00:10:31 +08:00
parent 01e56382a3
commit b01584c49e

View File

@ -179,7 +179,10 @@ export const RunButton: FC<{ onClickRun?: MouseEventHandler, iconMode?: boolean
}
}).catch(() => {
commonStore.setStatus({ status: ModelStatus.Offline });
toast(t('Failed to switch model, please try starting the program with administrator privileges.'), { type: 'error' });
if (commonStore.platform === 'windows')
toast(t('Failed to switch model, please try starting the program with administrator privileges.'), { type: 'error' });
else
toast(t('Failed to switch model'), { type: 'error' });
});
}
}).catch(() => {