Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,17 @@ def handleTriggerQuery(self, query):
self.showPasswords(query)

def generatePassword(self, query):
location = query.string.strip()[9:]
location = query.string.strip()[9:].strip()
if not location:
query.add(
StandardItem(
id="generate_password",
icon_factory=lambda: Plugin.makeIcon(self),
text="Can't generate a new password",
subtext="The location for the new password is invalid",
)
)
return

query.add(
StandardItem(
Expand Down