From 556741e864e72599cc90876dfbd55c791e845d76 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Wed, 27 Dec 2023 10:15:51 +0100 Subject: [PATCH] Don't show warning for [tui.palette] setting section --- toot/cli/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toot/cli/__init__.py b/toot/cli/__init__.py index 8e44af0..f36d70a 100644 --- a/toot/cli/__init__.py +++ b/toot/cli/__init__.py @@ -51,6 +51,11 @@ 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: print_warning("Settings section [tui] has been deprecated in favour of [commands.tui].") tui_new = commands.get("tui", {})