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

@@ -72,6 +72,13 @@ class proxy(wx.Panel, baseDialog.BaseWXDialog):
sizer.Add(serverBox, 0, wx.ALL, 5)
self.SetSizer(sizer)
class postabandonment(wx.Panel, baseDialog.BaseWXDialog):
def __init__(self, parent):
super(postabandonment, self).__init__(parent)
sizer = wx.BoxSizer(wx.VERTICAL)
self.check_for_updates = wx.CheckBox(self, -1, _(U"Check for updates when {0} launches").format(application.name,))
sizer.Add(self.check_for_updates, 0, wx.ALL, 5)
class generalAccount(wx.Panel, baseDialog.BaseWXDialog):
def __init__(self, parent):
super(generalAccount, self).__init__(parent)
@@ -300,7 +307,6 @@ class servicesPanel(wx.Panel):
return self.pocketBtn.GetLabel()
class configurationDialog(baseDialog.BaseWXDialog):
def set_title(self, title):
self.SetTitle(title)
@@ -320,6 +326,10 @@ class configurationDialog(baseDialog.BaseWXDialog):
self.proxy = proxy(self.notebook)
self.notebook.AddPage(self.proxy, _(u"Proxy"))
def create_postabandonment(self):
self.postabandonment = postabandonment(self.notebook)
self.notebook.AddPage(self.postabandonment, _(u"Codeofdusk's post-abandonment fixes"))
def create_general_account(self):
self.general = generalAccount(self.notebook)
self.notebook.AddPage(self.general, _(u"General"))