chore
This commit is contained in:
parent
01e56382a3
commit
b01584c49e
@ -179,7 +179,10 @@ export const RunButton: FC<{ onClickRun?: MouseEventHandler, iconMode?: boolean
|
|||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
commonStore.setStatus({ status: ModelStatus.Offline });
|
commonStore.setStatus({ status: ModelStatus.Offline });
|
||||||
|
if (commonStore.platform === 'windows')
|
||||||
toast(t('Failed to switch model, please try starting the program with administrator privileges.'), { type: 'error' });
|
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(() => {
|
}).catch(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user