From 4f19ea264218fc93f4bca00b1f5a901c0ddc1b44 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 24 Mar 2020 23:00:39 +0100 Subject: Add -t theme option `profanity -t bios` loads the bios theme now. Fix https://github.com/profanity-im/profanity/issues/1286 --- src/config/theme.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/config') diff --git a/src/config/theme.c b/src/config/theme.c index eafd431c..c7d979c5 100644 --- a/src/config/theme.c +++ b/src/config/theme.c @@ -67,8 +67,12 @@ static gboolean _theme_load_file(const char *const theme_name); void theme_init(const char *const theme_name) { - if (!_theme_load_file(theme_name) && !_theme_load_file("default")) { - log_error("Theme initialisation failed"); + if (!_theme_load_file(theme_name)) { + log_error("Loading theme %s failed.", theme_name); + + if (!_theme_load_file("default")) { + log_error("Theme initialisation failed."); + } } defaults = g_hash_table_new_full(g_str_hash, g_str_equal, free, free); -- cgit 1.4.1-2-gfad0