Removed the default text in scoreboard.py. This way people don't have to backspace before entering their name. If the text is empty or None, it then uses Player as the default.

This commit is contained in:
Storm Dragon
2025-09-21 14:33:18 -04:00
parent d050db0d6e
commit a00bdc5ff9

View File

@@ -166,8 +166,8 @@ class Scoreboard:
if name is None:
# Import get_input here to avoid circular imports
from .input import get_input
name = get_input("New high score! Enter your name:", "Player")
if name is None: # User cancelled
name = get_input("New high score! Enter your name:", "")
if name is None or name.strip() == "": # User cancelled or entered empty
name = "Player"
# Insert new score at correct position