fix: misc fixes for 0.6.0

This commit is contained in:
2025-04-13 21:02:04 +00:00
parent 073ff8cfb8
commit 7ea31c7a87
4 changed files with 35 additions and 21 deletions

View File

@ -222,6 +222,12 @@ export const usePrfStore = defineStore('prf', () => {
current.value?.data.mods.includes(pkgKey(pkg))
);
const isPkgKeyEnabled = (pkg: string) =>
computed(
() =>
current.value !== null && current.value?.data.mods.includes(pkg)
);
const reload = async () => {
const p = (await invoke('get_current_profile')) as Profile;
current.value = p;
@ -322,6 +328,7 @@ export const usePrfStore = defineStore('prf', () => {
current,
list,
isPkgEnabled,
isPkgKeyEnabled,
reload,
create,
rename,