Fix for old profile conversion
This commit is contained in:
parent
354dec9f0c
commit
6013b8a20a
@ -154,8 +154,8 @@ class Profile(object):
|
|||||||
backup1 = cp.get('Server', 'Backup1')
|
backup1 = cp.get('Server', 'Backup1')
|
||||||
client.set_string("/desktop/sugar/backup_url", backup1)
|
client.set_string("/desktop/sugar/backup_url", backup1)
|
||||||
if cp.has_option('Sound', 'Volume'):
|
if cp.has_option('Sound', 'Volume'):
|
||||||
volume = int(cp.get('Sound', 'Volume'))
|
volume = float(cp.get('Sound', 'Volume'))
|
||||||
client.set_int("/desktop/sugar/sound/volume", volume)
|
client.set_int("/desktop/sugar/sound/volume", int(volume))
|
||||||
if cp.has_option('Power', 'AutomaticPM'):
|
if cp.has_option('Power', 'AutomaticPM'):
|
||||||
state = cp.get('Power', 'AutomaticPM')
|
state = cp.get('Power', 'AutomaticPM')
|
||||||
if state.lower() == "true":
|
if state.lower() == "true":
|
||||||
|
Loading…
Reference in New Issue
Block a user