Skip to content

Commit

Permalink
Show "Trinken" button when scanning first and then selecting username
Browse files Browse the repository at this point in the history
  • Loading branch information
soerface committed Dec 15, 2024
1 parent fd9b5e5 commit 1321d1e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drinks_touch/screens/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ def on_start(self, *args, **kwargs):
]
)

if drink:
self.objects.extend([self.zuordnen, self.drink_info])
return

self.elements_aufladungen = [
Expand All @@ -164,9 +166,9 @@ def on_start(self, *args, **kwargs):
self.btn_aufladen,
]
self.elements_drinks = [self.label_verbrauch, self.btn_abbrechen]
if drink:
self.elements_drinks.extend([self.zuordnen, self.drink_info])
else:
# if drink:
# self.elements_drinks.extend([self.zuordnen, self.drink_info])
if not drink:
self.elements_drinks.append(self.btn_aufladungen)

drinks = self.get_stats(limit=12)
Expand Down

0 comments on commit 1321d1e

Please sign in to comment.