Skip to content

Commit

Permalink
Allows users to use rename: {calcy} without quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
esauvisky committed Apr 11, 2019
1 parent aefd4b1 commit 7e1edc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ivcheck.py
Expand Up @@ -249,7 +249,8 @@ async def start(self):
if values["success"] is False:
await self.tap('close_calcy_dialog') # it gets in the way
await self.tap('rename')
if actions.get("rename", "{calcy}") != "{calcy}": # Don't bother setting clipboard if we don't need to change it
if not (actions.get("rename", "{calcy}") == "{calcy}" or ('calcy' in actions["rename"] and len(actions["rename"]) == 1)): # Don't bother setting clipboard if we don't need to change it
# also now allows users to forget to enclose {calcy} in quotes.
await self.p.send_intent("clipper.set", extra_values=[["text", actions["rename"].format(**values)]])

if args.touch_paste:
Expand Down

0 comments on commit 7e1edc8

Please sign in to comment.