Skip to content

Commit

Permalink
fix: Cannot delete shader pack for modrinth
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Dec 9, 2023
1 parent 3c86871 commit af165c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xmcl-keystone-ui/src/views/ShaderPack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,14 @@ const { t } = useI18n()
const isShaderPackProject = (p: ProjectEntry<ProjectFile> | undefined): p is ShaderPackProject => !!p
const { shaderPack } = injection(kInstanceShaderPacks)
const { removeResources } = useService(ResourceServiceKey)
const onInstall = (r: Resource[]) => {
shaderPack.value = r[0].fileName
}
const onUninstall = () => {
const onUninstall = (files: ProjectFile[]) => {
shaderPack.value = ''
removeResources(files.map(f => f.resource.hash))
}
const onEnable = (f: ProjectFile) => {
shaderPack.value = f.resource.fileName
Expand Down

0 comments on commit af165c5

Please sign in to comment.