UI: Use title case for Settings and zero-hour toggle menu items
All checks were successful
Build Tamigo CLI / Build Linux Binary (pull_request) Successful in 53s
Build Tamigo CLI / Build Windows Binary (pull_request) Successful in 43s

This commit is contained in:
Daniel Dybing
2026-03-14 11:55:35 +01:00
parent b100533e03
commit d3d861bd2d

View File

@@ -315,7 +315,7 @@ def main():
def menu(client): def menu(client):
while True: while True:
settings_text = "SETTINGS" if current_theme_name == "fallout" else "Settings" settings_text = "Settings"
choice = questionary.select( choice = questionary.select(
"SELECT ACTION:" if current_theme_name == "fallout" else "What would you like to do?", "SELECT ACTION:" if current_theme_name == "fallout" else "What would you like to do?",
choices=["Calculate actual work days", "Export hours worked", "Show profile info", settings_text, "Logout and Exit"], choices=["Calculate actual work days", "Export hours worked", "Show profile info", settings_text, "Logout and Exit"],
@@ -336,11 +336,9 @@ def menu(client):
def settings_menu(): def settings_menu():
while True: while True:
show_zero = current_config.get("show_zero_hours", False) show_zero = current_config.get("show_zero_hours", False)
toggle_text = "HIDE ZERO-HOUR DAYS" if current_theme_name == "fallout" else "Hide zero-hour days" toggle_text = "Hide zero-hour days" if show_zero else "Show zero-hour days"
if not show_zero:
toggle_text = "SHOW ZERO-HOUR DAYS" if current_theme_name == "fallout" else "Show zero-hour days"
back_text = "BACK" if current_theme_name == "fallout" else "Back" back_text = "Back"
choice = questionary.select( choice = questionary.select(
"SELECT SETTING:" if current_theme_name == "fallout" else "Settings:", "SELECT SETTING:" if current_theme_name == "fallout" else "Settings:",