mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add error toast
This commit is contained in:
parent
e8515e1990
commit
a03ac26b80
4 changed files with 7 additions and 3 deletions
|
@ -60,6 +60,7 @@ export const UserEditProfile = ({
|
|||
const { imagePath } = await window.electron
|
||||
.processProfileImage(filePaths[0])
|
||||
.catch(() => {
|
||||
showErrorToast(t("image_process_failure"));
|
||||
return { imagePath: null };
|
||||
})
|
||||
.finally(() => setIsLoadingImage(false));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue