From 6ab13cc55ba5c8f3f29d6462d45074b759c79463 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 21 Jul 2023 10:03:52 +0200 Subject: [PATCH] Clear input on submit --- markaspaid.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/markaspaid.py b/markaspaid.py index 991bd91..3882640 100755 --- a/markaspaid.py +++ b/markaspaid.py @@ -68,6 +68,8 @@ class Window(Gtk.Window): def on_entry_activate(self, widget): results = self.api('GET', '/api/v1/organizers/%(organizer)s/checkinrpc/search/', ignore_status='true', list=self.config['list'], search=widget.get_text()) + widget.set_text('') + if results['count'] == 0: self.info('Keine Ergebnisse', 'Bitte präzisiere deine Eingabe.') return