Switch launch selection to library profiles
Some checks failed
Build / release (macos-latest) (push) Has been cancelled
Build / release (ubuntu-latest) (push) Has been cancelled
Build / release (windows-latest) (push) Has been cancelled
Windows Smoke Test / windows-smoke (push) Has been cancelled

This commit is contained in:
2026-05-04 14:48:04 +09:00
parent 0f6c0563db
commit 27c1453aa8
6 changed files with 91 additions and 16 deletions

View File

@@ -117,16 +117,19 @@ function renderDetailPanel(profile){
installDetailBody.textContent = buildDetailText(profile)
installDetailAddButton.disabled = installed || !profile.launchReady
installDetailAddButton.textContent = installed ? '이미 라이브러리에 있음' : '라이브러리에 추가'
installDetailAddButton.onclick = async () => {
try {
const installedProfile = await CatalogManager.installProfile(profile.id)
await ProfileAssetManager.prefetchProfileAssets(installedProfile)
if(installedProfile.kind === 'server-pack' && installedProfile.hostReady){
await ProfileAssetManager.ensureServerBundleInstalled(installedProfile)
}
renderDetailPanel(profile)
await renderInstallView()
if(typeof refreshLibraryView === 'function'){
installDetailAddButton.onclick = async () => {
try {
const installedProfile = await CatalogManager.installProfile(profile.id)
await ProfileAssetManager.prefetchProfileAssets(installedProfile)
if(installedProfile.kind === 'server-pack' && installedProfile.hostReady){
await ProfileAssetManager.ensureServerBundleInstalled(installedProfile)
}
if(typeof refreshSelectedProfileButton === 'function'){
refreshSelectedProfileButton()
}
renderDetailPanel(profile)
await renderInstallView()
if(typeof refreshLibraryView === 'function'){
await refreshLibraryView()
}
showInstallMessage('추가 완료', `${profile.name} 프로필을 라이브러리에 추가했습니다.`)
@@ -242,6 +245,9 @@ async function renderInstallView(){
if(installedProfile.kind === 'server-pack' && installedProfile.hostReady){
await ProfileAssetManager.ensureServerBundleInstalled(installedProfile)
}
if(typeof refreshSelectedProfileButton === 'function'){
refreshSelectedProfileButton()
}
selectProfile(profile.id)
await renderInstallView()
if(typeof refreshLibraryView === 'function'){