Add repo link to launcher

This commit is contained in:
Andraxion 2026-06-26 21:12:44 -04:00
parent 932a638daf
commit 2ad785f65d

View file

@ -40,6 +40,10 @@ function openStudioInCurrentTab(worldId: string): void {
window.location.assign(buildWorldshaperStudioUrl(worldId, window, { worldId })); window.location.assign(buildWorldshaperStudioUrl(worldId, window, { worldId }));
} }
function openRepo(): void {
window.location.assign("https://repo.andraxion.net/");
}
function WorldshaperLauncher() { function WorldshaperLauncher() {
const [launchState, setLaunchState] = useState<LaunchState>("resolving"); const [launchState, setLaunchState] = useState<LaunchState>("resolving");
const [status, setStatus] = useState("Preparing Worldshaper Studio..."); const [status, setStatus] = useState("Preparing Worldshaper Studio...");
@ -215,6 +219,9 @@ function WorldshaperLauncher() {
<button type="button" className="launcher-secondary-btn" onClick={handleOpenHere} disabled={isBusy}> <button type="button" className="launcher-secondary-btn" onClick={handleOpenHere} disabled={isBusy}>
Open In This Tab Open In This Tab
</button> </button>
<button type="button" className="launcher-secondary-btn" onClick={openRepo} disabled={isBusy}>
Open Repo
</button>
</div> </div>
) : null} ) : null}
</section> </section>