mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-27 22:10:29 +01:00
fixes bug when setting --style=disabled (we were stil getting coloured check/cross marks)
This commit is contained in:
parent
d628c5d3a4
commit
157e1a167c
@ -42,11 +42,6 @@ class Disabled(Style):
|
||||
column: str = 'none'
|
||||
highlight: str = 'none'
|
||||
|
||||
def __post_init__(self):
|
||||
"""Post-initialization to set default values."""
|
||||
super().__post_init__()
|
||||
os.environ['NO_COLOR'] = '1'
|
||||
|
||||
|
||||
@register_style
|
||||
@dataclass
|
||||
@ -182,4 +177,7 @@ class Black(Style):
|
||||
|
||||
def request_style_obj(style_name: str, no_border: bool) -> Style:
|
||||
"""Entry point for style objects. Returns a Style object based on the style name."""
|
||||
if style_name == 'disabled':
|
||||
os.environ['NO_COLOR'] = '1'
|
||||
|
||||
return registry[style_name.lower()](no_border=no_border)
|
||||
|
Loading…
x
Reference in New Issue
Block a user