Merge pull request #4 from dnarvaez/no-color
Handle invalid /desktop/sugar/user/color Acked-by: Manuel Quiñones <manuq@dev.laptop.org>
This commit is contained in:
commit
9ef961cc94
@ -239,7 +239,7 @@ class XoColor:
|
|||||||
'fallback to default', color_string)
|
'fallback to default', color_string)
|
||||||
client = GConf.Client.get_default()
|
client = GConf.Client.get_default()
|
||||||
color_string = client.get_string('/desktop/sugar/user/color')
|
color_string = client.get_string('/desktop/sugar/user/color')
|
||||||
randomize = False
|
randomize = is_valid(color_string)
|
||||||
else:
|
else:
|
||||||
randomize = False
|
randomize = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user