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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -354,6 +354,11 @@ export default {
} }
}, },
doCmd() { 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) { if (this.selectedCmd === null) {
return return
} }