mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Merge pull request #1681 from akaWolf/fix_theme_load_non_exist
Fix theme load When we execute `/theme load somethingthatdoesntexist` it still loaded some colors wrongly.
This commit is contained in:
commit
55cc76450b
@ -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