mirror of
https://github.com/ihabunek/toot
synced 2025-01-27 09:41:26 +01:00
Don't show warning for [tui.palette] setting section
This commit is contained in:
parent
d1d74f47d8
commit
556741e864
@ -51,6 +51,11 @@ def get_default_map():
|
|||||||
|
|
||||||
# TODO: remove in version 1.0
|
# TODO: remove in version 1.0
|
||||||
tui_old = settings.get("tui", {})
|
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:
|
if tui_old:
|
||||||
print_warning("Settings section [tui] has been deprecated in favour of [commands.tui].")
|
print_warning("Settings section [tui] has been deprecated in favour of [commands.tui].")
|
||||||
tui_new = commands.get("tui", {})
|
tui_new = commands.get("tui", {})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user