From 8efecc27c3b86a1964a61fe12a116c5c776c6c75 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 18 Oct 2020 18:00:30 +0200 Subject: [PATCH] client.py: Removed simple setup() fun --- playbook/templates/client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/playbook/templates/client.py b/playbook/templates/client.py index f11ffb4..2abeed6 100755 --- a/playbook/templates/client.py +++ b/playbook/templates/client.py @@ -26,9 +26,7 @@ def show_select(win, path): dirs = sorted([d for d in path.iterdir() if d.is_dir()]) if len(dirs) <= 0: return show_pictures(path) - def setup(): - win.clear() - setup() + win.clear() sel = 0 while True: for y, d in enumerate(dirs): @@ -41,7 +39,7 @@ def show_select(win, path): elif c in binding_accept: if not show_select(win, dirs[sel]): return False - setup() + win.clear() elif c in binding_back: return True elif c in binding_exit: