Clear input on submit

This commit is contained in:
Luca 2023-07-21 10:03:52 +02:00
parent 1fa320cbd3
commit 6ab13cc55b
1 changed files with 2 additions and 0 deletions

View File

@ -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