Compare commits

...

1 Commits

Author SHA1 Message Date
kolaente 9d390a4d38 fix: prevent quick add from opening project 2025-06-10 21:00:01 +02:00
1 changed files with 10 additions and 11 deletions

View File

@ -492,18 +492,17 @@ async function doAction(type: ACTION_TYPE, item: DoAction) {
}
async function doCmd() {
if (results.value.length === 1 && results.value[0].items.length === 1) {
const result = results.value[0]
doAction(result.type, result.items[0])
return
}
if (selectedCmd.value !== null && query.value !== '') {
closeQuickActions()
await selectedCmd.value.action()
return
}
if (selectedCmd.value === null || query.value === '') {
return
}
closeQuickActions()
await selectedCmd.value.action()
if (results.value.length === 1 && results.value[0].items.length === 1) {
const result = results.value[0]
doAction(result.type, result.items[0])
return
}
}
async function newTask() {