Compare commits

...

2 Commits

Author SHA1 Message Date
Luca 2754790637 Do not hide input 2023-07-21 10:13:00 +02:00
Luca 6ab13cc55b Clear input on submit 2023-07-21 10:03:52 +02:00
1 changed files with 2 additions and 1 deletions

View File

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