mirror of
https://github.com/ihabunek/toot
synced 2025-01-10 16:52:40 +01:00
Make palettes work again
This commit is contained in:
parent
2e55ddbe7e
commit
84e75347e0
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user