Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 79969a6

Browse files
authored
[bitwarden] Fix freeze when triggering bitwarden (#221)
A freeze can be observed when triggering the bitwarden plugin. This seems to occur the second time `query.add` is called. To fix this issue the same logic as the `kill` plugin is used: Add all items to a local array before finally adding this using `query.add` This fixes #215 Signed-off-by: Darrel Griët <dgriet@gmail.com>
1 parent 53c4bdd commit 79969a6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

bitwarden/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ def configWidget(self):
6868
]
6969

7070
def handleTriggerQuery(self, query):
71+
results = []
7172
if query.string.strip().lower() == "sync":
72-
query.add(
73+
results.append(
7374
StandardItem(
7475
id="sync",
7576
text="Sync Bitwarden Vault",
@@ -85,7 +86,7 @@ def handleTriggerQuery(self, query):
8586
)
8687

8788
for p in self._filter_items(query):
88-
query.add(
89+
results.append(
8990
StandardItem(
9091
id=p["id"],
9192
text=p["path"],
@@ -118,6 +119,8 @@ def handleTriggerQuery(self, query):
118119
)
119120
)
120121

122+
query.add(results)
123+
121124
def _get_items(self):
122125
not_first_time = self._cached_items is not None
123126

0 commit comments

Comments
 (0)