Skip to content

Commit

Permalink
Make palettes work again
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Dec 31, 2023
1 parent 2e55ddb commit 84e7534
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions toot/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ def get_default_map():
# TODO: remove in version 1.0
tui_old = settings.get("tui", {})

# Remove palette to avoid triggering warning for still valid [tui.palette] section
if "palette" in tui_old:
del tui_old["palette"]

if tui_old:
# TODO: don't show the warning for [toot.palette]
print_warning("Settings section [tui] has been deprecated in favour of [commands.tui].")
tui_new = commands.get("tui", {})
commands["tui"] = {**tui_old, **tui_new}
Expand Down

0 comments on commit 84e7534

Please sign in to comment.