diff --git a/jlauncher/settings.py b/jlauncher/settings.py index c342503..dee18b3 100644 --- a/jlauncher/settings.py +++ b/jlauncher/settings.py @@ -22,8 +22,8 @@ _CONSOLE_MODES = ("show", "auto", "hide") def _valid_console_mode(value) -> str: - """Normaliza el modo de consola; cae a 'show' si es desconocido.""" - return value if value in _CONSOLE_MODES else "show" + """Normaliza el modo de consola; cae a 'auto' si es desconocido.""" + return value if value in _CONSOLE_MODES else "auto" @dataclass @@ -33,7 +33,7 @@ class Settings: gitea_token: str = "" # token personal de Gitea para repos privados (no se versiona) check_updates_on_start: bool = False # comprobar updates automáticamente al iniciar theme: str = "system" # tema de la UI: "system" | "light" | "dark" - console_mode: str = "show" # consola de log: "show" | "auto" | "hide" + console_mode: str = "auto" # consola de log: "show" | "auto" | "hide" # Tolerancia a repos offline/inalcanzables (segundos, salvo stall_limit en bytes/s). git_fetch_timeout: int = 60 # techo para fetch / comprobar update git_clone_timeout: int = 900 # techo para clone (repo grande) @@ -60,7 +60,7 @@ def load_settings() -> Settings: gitea_token=str(data.get("gitea_token", "")), check_updates_on_start=bool(data.get("check_updates_on_start", False)), theme=_valid_theme(data.get("theme", "system")), - console_mode=_valid_console_mode(data.get("console_mode", "show")), + console_mode=_valid_console_mode(data.get("console_mode", "auto")), git_fetch_timeout=int(data.get("git_fetch_timeout", 60)), git_clone_timeout=int(data.get("git_clone_timeout", 900)), http_timeout=int(data.get("http_timeout", 15)),