Skip to content

Commit

Permalink
fix: Hide TUI notification bar with --quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonymouX47 committed Apr 19, 2023
1 parent d2f6273 commit 1692d6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/termvisage/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ def reconfigure_tui(
"""Updates aspects of the TUI to use the current config option values and
keybindings.
"""
from .cli import args
from .tui.keys import change_key
from .tui.widgets import expand, image_grid, notif_bar, pile

Expand All @@ -253,7 +254,7 @@ def reconfigure_tui(
expand_or_collapse = expand.original_widget.text[0]
expand.original_widget.set_text(f"{expand_or_collapse} [{expand_key[1]}]")

if not logging.QUIET:
if not args.quiet:
if pile.contents[-1][0] is notif_bar:
pile.contents.pop()
if config_options.max_notifications:
Expand Down

0 comments on commit 1692d6c

Please sign in to comment.