mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 09:16:22 +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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user