Skip to content

Commit

Permalink
small fix for debug oops
Browse files Browse the repository at this point in the history
  • Loading branch information
KingKDot committed Jan 24, 2024
1 parent 22a407b commit ca19719
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
@dataclass
class settings:
file: str = ""
debug: bool = False


class Code_Display(ScrollableContainer):
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit ca19719

Please sign in to comment.