Improved cross-platform interaction

This commit is contained in:
josc146
2023-06-05 23:11:22 +08:00
parent 9bd9b9ecbd
commit e62fcd152a
4 changed files with 30 additions and 20 deletions

View File

@@ -840,7 +840,10 @@ export const Configs: FC = observer(() => {
} />
<ToolTipButton text={t('Convert')} desc={t('Convert model with these configs')} onClick={async () => {
if (commonStore.platform == 'darwin') {
toast(t('MacOS is not supported yet, please convert manually.'), { type: 'info' });
toast(t('MacOS is not yet supported for performing this operation, please do it manually.'), { type: 'info' });
return;
} else if (commonStore.platform == 'linux') {
toast(t('Linux is not yet supported for performing this operation, please do it manually.'), { type: 'info' });
return;
}

View File

@@ -53,7 +53,7 @@ export const Downloads: FC = observer(() => {
<div className="flex items-center gap-2">
<ProgressBar className="grow" value={status.progress} max={100} />
{!status.done &&
<ToolTipButton desc={status.downloading ? t('Pause') : t('Continue')}
<ToolTipButton desc={status.downloading ? t('Pause') : t('Resume')}
icon={status.downloading ? <Pause20Regular /> : <Play20Regular />}
onClick={() => {
if (status.downloading)