fix: toggles

This commit is contained in:
2025-02-23 20:11:03 +00:00
parent 6236b8ef96
commit fcd3855c49
2 changed files with 2 additions and 3 deletions

View File

@ -14,8 +14,7 @@ const props = defineProps({
}); });
const toggle = async (value: boolean) => { const toggle = async (value: boolean) => {
store.toggle(props.pkg, value); await store.toggle(props.pkg, value);
await store.reloadProfile();
}; };
</script> </script>

View File

@ -96,7 +96,7 @@ export const usePkgStore = defineStore('pkg', {
return; return;
} }
await invoke('toggle_package', { key: pkgKey(pkg), enable }); await invoke('toggle_package', { key: pkgKey(pkg), enable });
await this.reload(pkg); await this.reloadProfile();
await this.saveProfile(); await this.saveProfile();
}, },
}, },