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 3e554a1 commit fe759f6Copy full SHA for fe759f6
__init__.py
@@ -78,7 +78,17 @@ def handleTriggerQuery(self, query):
78
self.showPasswords(query)
79
80
def generatePassword(self, query):
81
- location = query.string.strip()[9:]
+ location = query.string.strip()[9:].strip()
82
+ if not location:
83
+ query.add(
84
+ StandardItem(
85
+ id="generate_password",
86
+ icon_factory=lambda: Plugin.makeIcon(self),
87
+ text="Can't generate a new password",
88
+ subtext="The location for the new password is invalid",
89
+ )
90
91
+ return
92
93
query.add(
94
StandardItem(
0 commit comments