Clear input on submit
This commit is contained in:
parent
1fa320cbd3
commit
6ab13cc55b
|
@ -68,6 +68,8 @@ class Window(Gtk.Window):
|
||||||
|
|
||||||
def on_entry_activate(self, widget):
|
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())
|
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:
|
if results['count'] == 0:
|
||||||
self.info('Keine Ergebnisse', 'Bitte präzisiere deine Eingabe.')
|
self.info('Keine Ergebnisse', 'Bitte präzisiere deine Eingabe.')
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue