fix: misc fixes for 0.6.0
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user