feat: Added option to filter out zero hour days #2

Merged
daniel merged 4 commits from fix-issue1-hide-zero-hours into main 2026-03-14 12:00:33 +01:00
Showing only changes of commit d3d861bd2d - Show all commits

View File

@@ -315,7 +315,7 @@ def main():
def menu(client):
while True:
settings_text = "SETTINGS" if current_theme_name == "fallout" else "Settings"
settings_text = "Settings"
choice = questionary.select(
"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"],
@@ -336,11 +336,9 @@ def menu(client):
def settings_menu():
while True:
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"
if not show_zero:
toggle_text = "SHOW ZERO-HOUR DAYS" if current_theme_name == "fallout" else "Show zero-hour days"
toggle_text = "Hide zero-hour days" if show_zero else "Show zero-hour days"
back_text = "BACK" if current_theme_name == "fallout" else "Back"
back_text = "Back"
choice = questionary.select(
"SELECT SETTING:" if current_theme_name == "fallout" else "Settings:",