Skip to content

Commit

Permalink
Made little bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dnorhoj committed Jun 2, 2019
1 parent 2c10f54 commit 2b9a1c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="termmenu",
version="2.0",
version="2.0.1",
author="dnorhoj",
author_email="daniel.norhoj@gmail.com",
description="A tool for making terminal menus.",
Expand Down
2 changes: 1 addition & 1 deletion termmenu/termmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def add_entry(self, text:str, **kwargs):
else:
entry['submenu'] = None

if callable(run) and not entry['submenu'] is None:
if callable(run) and entry['submenu'] is None:
entry['run'] = run
else:
entry['run'] = None
Expand Down

0 comments on commit 2b9a1c6

Please sign in to comment.