mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-02 19:56:21 +00:00
disable execution of colors-changing code when call for theme load and it doesn't exist
This commit is contained in:
@@ -184,6 +184,9 @@ theme_exists(const char* const theme_name)
|
|||||||
gboolean
|
gboolean
|
||||||
theme_load(const char* const theme_name, gboolean load_theme_prefs)
|
theme_load(const char* const theme_name, gboolean load_theme_prefs)
|
||||||
{
|
{
|
||||||
|
if (!theme_exists(theme_name))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
color_pair_cache_reset();
|
color_pair_cache_reset();
|
||||||
|
|
||||||
if (_theme_load_file(theme_name)) {
|
if (_theme_load_file(theme_name)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user