From 07ce777bb9d61237dfc90ee3af37163ebd90a5b6 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Sun, 28 Jun 2026 17:55:09 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20Installation=20of=20Unity?= =?UTF-8?q?=20Hub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/ipc/handlers.ts | 3 ++- src/renderer/src/features/settings/SettingsView.tsx | 9 ++++++++- src/renderer/src/lib/i18n/locales/en/settings.json | 1 + src/renderer/src/lib/i18n/locales/ja/settings.json | 1 + src/renderer/src/lib/i18n/locales/th/settings.json | 1 + 5 files changed, 13 insertions(+), 2 deletions(-) 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 ? (