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:
parent
cef0c5e927
commit
9c2713c917
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user