App fixes 0.9.0 (#3034)

* push fixes to test on windows

* Fix searching mods

* Fix search not saving, fix scrolling issues, etc
This commit is contained in:
Geometrically
2024-12-17 23:23:30 -07:00
committed by GitHub
parent 7e8ceadfd4
commit 6ceed4b226
19 changed files with 280 additions and 178 deletions

View File

@@ -183,8 +183,8 @@
},
{
id: 'copy-link',
shown: item.project !== undefined,
action: () => toggleDisableMod(item.data),
shown: item.data !== undefined && item.data.slug !== undefined,
action: () => copyModLink(item),
},
{
divider: true,
@@ -674,6 +674,12 @@ const removeMod = async (mod) => {
})
}
const copyModLink = async (mod) => {
await navigator.clipboard.writeText(
`https://modrinth.com/${mod.data.project_type}/${mod.data.slug}`,
)
}
const deleteSelected = async () => {
for (const project of functionValues.value) {
await remove_project(props.instance.path, project.path).catch(handleError)