feat(quick actions): select the item when only one result is available

resolves #703
This commit is contained in:
kolaente 2021-09-26 20:19:58 +02:00
parent a955488cdf
commit 3dfa286a12
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -354,6 +354,11 @@ export default {
}
},
doCmd() {
if (this.results.length === 1 && this.results[0].items.length === 1) {
this.doAction(this.results[0].type, this.results[0].items[0])
return
}
if (this.selectedCmd === null) {
return
}