Post-abandonment stage I (add tab to settings, add option to check for updates on app launch). Fixed #76

This commit is contained in:
Bill Dengler
2016-04-15 18:04:03 -04:00
parent 3e9143d607
commit 547f9393b9
4 changed files with 17 additions and 2 deletions

View File

@@ -69,6 +69,8 @@ class globalSettingsController(object):
self.dialog.set_value("proxy", "port", config.app["proxy"]["port"])
self.dialog.set_value("proxy", "user", config.app["proxy"]["user"])
self.dialog.set_value("proxy", "password", config.app["proxy"]["password"])
self.dialog.create_postabandonment()
self.dialog.set_value("postabandonment", "check_for_updates", config.app["app-settings"]["check_for_updates"])
self.dialog.realize()
self.response = self.dialog.get_response()
@@ -99,6 +101,7 @@ class globalSettingsController(object):
config.app["proxy"]["port"] = self.dialog.get_value("proxy", "port")
config.app["proxy"]["user"] = self.dialog.get_value("proxy", "user")
config.app["proxy"]["password"] = self.dialog.get_value("proxy", "password")
config.app["app-settings"]["check_for_updates"] = self.dialog.get_value("postabandonment", "check_for_updates")
config.app.write()
class accountSettingsController(globalSettingsController):