1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

disable execution of colors-changing code when call for theme load and it doesn't exist

This commit is contained in:
Artjom Vejsel 2022-04-02 19:07:59 +03:00
parent cef0c5e927
commit 9c2713c917

View File

@ -184,6 +184,9 @@ theme_exists(const char* const theme_name)
gboolean
theme_load(const char* const theme_name, gboolean load_theme_prefs)
{
if (!theme_exists(theme_name))
return FALSE;
color_pair_cache_reset();
if (_theme_load_file(theme_name)) {