utils: correct caching of can_show_graphics
It's being forgotten unless it's also static. Spotted by Thomas in the code that was copied from here.
This commit is contained in:
@@ -437,7 +437,7 @@ static gboolean
|
||||
can_show_graphics (void)
|
||||
{
|
||||
static gboolean can_show_graphics_set = FALSE;
|
||||
gboolean can_show_graphics = TRUE;
|
||||
static gboolean can_show_graphics = TRUE;
|
||||
char *locale_str;
|
||||
|
||||
if (G_LIKELY (can_show_graphics_set))
|
||||
|
Reference in New Issue
Block a user