mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-15 04:32:13 +00:00
feat: adding change hero
This commit is contained in:
parent
035e424a76
commit
4222fcec52
1 changed files with 2 additions and 10 deletions
|
@ -274,15 +274,7 @@ export function ProfileHero() {
|
||||||
if (filePaths && filePaths.length > 0) {
|
if (filePaths && filePaths.length > 0) {
|
||||||
const path = filePaths[0];
|
const path = filePaths[0];
|
||||||
|
|
||||||
const { imagePath } = await window.electron
|
setHero(path);
|
||||||
.processProfileImage(path)
|
|
||||||
.catch(() => {
|
|
||||||
showErrorToast(t("image_process_failure"));
|
|
||||||
return { imagePath: null };
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log("imagePath", imagePath);
|
|
||||||
setHero(imagePath);
|
|
||||||
|
|
||||||
// onChange(imagePath);
|
// onChange(imagePath);
|
||||||
}
|
}
|
||||||
|
@ -292,7 +284,7 @@ export function ProfileHero() {
|
||||||
if (hero) return `local:${hero}`;
|
if (hero) return `local:${hero}`;
|
||||||
// if (userDetails?.profileImageUrl) return userDetails.profileImageUrl;
|
// if (userDetails?.profileImageUrl) return userDetails.profileImageUrl;
|
||||||
|
|
||||||
return null;
|
return "";
|
||||||
};
|
};
|
||||||
|
|
||||||
// const imageUrl = getImageUrl();
|
// const imageUrl = getImageUrl();
|
||||||
|
|
Loading…
Reference in a new issue