diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-03-24 23:00:39 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-03-24 23:00:39 +0100 |
commit | 4f19ea264218fc93f4bca00b1f5a901c0ddc1b44 (patch) | |
tree | 81ae87d9f26b1ac8b05dd98d120a5f83aa90ec61 /src/config | |
parent | 4c8e78664c7e9379f5d681b873a445676db32fd4 (diff) | |
download | profani-tty-4f19ea264218fc93f4bca00b1f5a901c0ddc1b44.tar.gz |
Add -t theme option
`profanity -t bios` loads the bios theme now. Fix https://github.com/profanity-im/profanity/issues/1286
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/theme.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); |