1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-09 21:30:42 +00: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:
Michael Vetter 2022-04-03 23:36:39 +02:00 committed by GitHub
commit 55cc76450b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)) {