diff --git a/guicurses/widgets.py b/guicurses/widgets.py index ec2a5a2..107d84f 100644 --- a/guicurses/widgets.py +++ b/guicurses/widgets.py @@ -739,8 +739,8 @@ class fileBrowser(Listbox): # If there are no files or directories, let's say "empty" # This will avoid the program to crash and will look nicer. if len(folders) == 0: - folders.append(("collapse", _("empty"))) - if len(folders) + folders.append(("collapse", "empty")) + return folders diff --git a/setup.py b/setup.py index b9b4bf6..0751b3c 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ def read(fname): setup( name = "guicurses", - version = "0.5.1", + version = "0.5.2", author = "Manuel Cortez", author_email = "manuel@manuelcortez.net", description = "A set of utilities for building accessible applications with curses", @@ -15,4 +15,4 @@ setup( url = "https://github.com/raspberrypi-accesible/guicurses", long_description=read('README.md'), packages = ["guicurses"], -) \ No newline at end of file +)