Skip to content

Commit

Permalink
Update MessageToolbar and echo
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrogallo committed Feb 25, 2019
1 parent f54e255 commit 10b81b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions papis/tui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def _quit(cmd):
get_picker().deselect()
cmd.app.exit()

def _echo(cmd, text):
MessageToolbar.instance.text = text
def _echo(cmd, *args):
MessageToolbar.instance.text = ' '.join(args)

return [
Command("open", run=_open, aliases=["op"]),
Expand Down
2 changes: 1 addition & 1 deletion papis/tui/widgets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self):
style="bg:#bbee88 fg:#000000", content=self.text_control,
height=1
),
filter=Condition(lambda: MessageToolbar.message is not None)
filter=Condition(lambda: MessageToolbar.message)
)

@property
Expand Down

0 comments on commit 10b81b3

Please sign in to comment.