diff --git a/src/main.py b/src/main.py index 2a1a75e..d4ba7bc 100644 --- a/src/main.py +++ b/src/main.py @@ -31,7 +31,6 @@ @dataclass class settings: file: str = "" - debug: bool = False class Code_Display(ScrollableContainer): @@ -72,10 +71,10 @@ def compose(self) -> ComposeResult: yield Footer() def action_toggle_debug(self) -> None: - settings.debug = not settings.debug - color = "red" if not settings.debug else "green" + Settings.debug = not Settings.debug + color = "red" if not Settings.debug else "green" debug_msg = Text.from_markup( - f"Debug is now [{color} italic]{settings.debug}[/]" + f"Debug is now [{color} italic]{Settings.debug}[/]" ) self.query_one(RichLog).write(debug_msg)