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

@@ -112,6 +112,9 @@ async function activateProfile(profile, launchNow = false){
CatalogManager.selectProfile(profile.id)
CatalogManager.applyConfiguredProfile()
if(typeof refreshSelectedProfileButton === 'function'){
refreshSelectedProfileButton()
}
try {
const distro = await DistroAPI.refreshDistributionOrFallback()
@@ -302,6 +305,9 @@ async function renderLibraryView(){
selectButton.addEventListener('click', async () => {
CatalogManager.selectProfile(profile.id)
CatalogManager.applyConfiguredProfile()
if(typeof refreshSelectedProfileButton === 'function'){
refreshSelectedProfileButton()
}
await renderLibraryView()
})
@@ -360,6 +366,9 @@ async function renderLibraryView(){
removeButton.addEventListener('click', async () => {
ServerRuntime.stopHostedProfile(profile.id)
CatalogManager.removeProfile(profile.id)
if(typeof refreshSelectedProfileButton === 'function'){
refreshSelectedProfileButton()
}
await renderLibraryView()
if(typeof refreshInstallView === 'function'){
await refreshInstallView()