Compare commits
2 Commits
1fa320cbd3
...
2754790637
Author | SHA1 | Date |
---|---|---|
Luca | 2754790637 | |
Luca | 6ab13cc55b |
|
@ -49,7 +49,6 @@ class Window(Gtk.Window):
|
|||
self.api = Api(config)
|
||||
|
||||
self.entry = Gtk.Entry()
|
||||
self.entry.set_visibility(False)
|
||||
self.entry.set_width_chars(32)
|
||||
self.entry.connect('activate', self.on_entry_activate)
|
||||
self.add(self.entry)
|
||||
|
@ -68,6 +67,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
|
||||
|
|
Loading…
Reference in New Issue