Add a Server section in the config file and use it to register only when needed
This commit is contained in:
@@ -239,6 +239,11 @@ class IntroBox(hippo.CanvasBox, hippo.CanvasItem):
|
||||
cp.set(section, 'NickName', name)
|
||||
cp.set(section, 'Color', color.to_string())
|
||||
|
||||
secion = 'Server'
|
||||
cp.add_section(section)
|
||||
cp.set(section, 'Server', 'olpc.collabora.co.uk')
|
||||
cp.set(Section, 'Registered', 'False')
|
||||
|
||||
config_path = os.path.join(env.get_profile_path(), 'config')
|
||||
f = open(config_path, 'w')
|
||||
cp.write(f)
|
||||
|
||||
Reference in New Issue
Block a user