Added telemetry system to get information about issues.

This commit is contained in:
2026-09-07 21:49:37 +02:00
parent bea9d6fda7
commit f06fc2e4e3
16 changed files with 4125 additions and 169 deletions

View File

@@ -37,6 +37,7 @@ _RETIRED_SETTINGS = frozenset(
class Settings:
realm: str = "Babel"
ui_scale: str = "auto"
telemetry_enabled: bool = True
borderless: bool = False
suppress_unresponsive_warnings: bool = True
runtime: str = "auto"
@@ -154,6 +155,7 @@ def _settings_from_object(value: dict[str, object]) -> Settings:
settings = Settings(
realm=_string(value, "realm", "Babel").strip(),
ui_scale=_string(value, "ui_scale", "auto"),
telemetry_enabled=_boolean(value, "telemetry_enabled", True),
borderless=_migrated_borderless(value),
allow_window_resizing=_boolean(
value,