mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 17:23:57 +00:00
feat: add error toast
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user