diff --git a/src/main/ipc/handlers.ts b/src/main/ipc/handlers.ts index 19238ec..fef3cdb 100644 --- a/src/main/ipc/handlers.ts +++ b/src/main/ipc/handlers.ts @@ -94,7 +94,8 @@ const handlers = { "unity:status": () => guard(() => unity.unityStatus()), "unity:install": (url) => guard(async () => { - if (!url.startsWith("unityhub://")) throw new Error("Invalid Unity Hub link"); + if (!url.startsWith("unityhub://") && !url.startsWith("https://unity.com/")) + throw new Error("Invalid Unity Hub link"); await shell.openExternal(url); }), diff --git a/src/renderer/src/features/settings/SettingsView.tsx b/src/renderer/src/features/settings/SettingsView.tsx index d41fbc1..a2f4cb3 100644 --- a/src/renderer/src/features/settings/SettingsView.tsx +++ b/src/renderer/src/features/settings/SettingsView.tsx @@ -425,7 +425,14 @@ function UnityStatusBody({ status }: { status: UnityStatus }) { {t(verdict.key)} - {status.match !== "ok" && status.installUrl ? ( + {!status.hubInstalled ? ( +
+ +
+ ) : status.match !== "ok" && status.installUrl ? (