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() { async function doCmd() {
if (results.value.length === 1 && results.value[0].items.length === 1) { if (selectedCmd.value !== null && query.value !== '') {
const result = results.value[0] closeQuickActions()
doAction(result.type, result.items[0]) await selectedCmd.value.action()
return return
} }
if (selectedCmd.value === null || query.value === '') { if (results.value.length === 1 && results.value[0].items.length === 1) {
return const result = results.value[0]
} doAction(result.type, result.items[0])
return
closeQuickActions() }
await selectedCmd.value.action()
} }
async function newTask() { async function newTask() {