We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b1584e commit d233e33Copy full SHA for d233e33
__init__.py
@@ -114,7 +114,17 @@ def handleTriggerQuery(self, query):
114
self.showPasswords(query)
115
116
def generatePassword(self, query):
117
- location = query.string.strip()[9:]
+ location = query.string.strip()[9:].strip()
118
+ if not location:
119
+ query.add(
120
+ StandardItem(
121
+ id="generate_password",
122
+ icon_factory=lambda: Plugin.makeIcon(self),
123
+ text="Can't generate a new password",
124
+ subtext="The location for the new password is invalid",
125
+ )
126
127
+ return
128
129
query.add(
130
StandardItem(
0 commit comments