elukjanovica 2024-06-05 08:52:31 +03:00
parent 1e8f1e3fa7
commit 9694a271d6
1 changed files with 1 additions and 2 deletions

View File

@ -536,6 +536,7 @@ def album_creation(y):
mouse_clicked = pygame.mouse.get_pressed()[0]
keys = pygame.key.get_pressed()
if (user_text and mouse_clicked) or (user_text and keys[pygame.K_RETURN]):
user_text = user_text.strip()
if user_text not in storage["albums"]:
storage["albums"][user_text] = {}
with open(DATA_FILE, 'w') as data_file:
@ -1313,8 +1314,6 @@ while run:
user_text = user_text[0:-1]
elif len(user_text) < 15:
user_text += event.unicode
elif event.key == pygame.K_RETURN:
user_text = user_text.strip()
if current_mode == "game":
if timer_running: