String cleanup, require restart when persistant_session changed.

This commit is contained in:
Bill Dengler 2015-05-06 10:54:12 -04:00
parent 08ce78f97c
commit 1794f497a5
2 changed files with 5 additions and 2 deletions

View File

@ -129,7 +129,10 @@ class accountSettingsController(globalSettingsController):
self.config["general"]["relative_times"] = self.dialog.get_value("general", "relative_time")
self.config["general"]["max_api_calls"] = self.dialog.get_value("general", "apiCalls")
self.config["general"]["max_tweets_per_call"] = self.dialog.get_value("general", "itemsPerApiCall")
if self.config["general"]["persistant_session"] != self.dialog.get_value("general", "persistant_session"):
self.needs_restart = True
self.config["general"]["persistant_session"] = self.dialog.get_value("general", "persistant_session")
if self.config["general"]["reverse_timelines"] != self.dialog.get_value("general", "reverse_timelines"):
self.needs_restart = True
self.config["general"]["reverse_timelines"] = self.dialog.get_value("general", "reverse_timelines")

View File

@ -92,7 +92,7 @@ class generalAccount(wx.Panel, baseDialog.BaseWXDialog):
rMode.Add(lbl, 0, wx.ALL, 5)
rMode.Add(self.retweet_mode, 0, wx.ALL, 5)
sizer.Add(rMode, 0, wx.ALL, 5)
self.persistant_session = wx.CheckBox(self, -1, _(u"Save session in database (experimental)"))
self.persistant_session = wx.CheckBox(self, -1, _(u"Cache session in database (experimental)"))
self.SetSizer(sizer)
class other_buffers(wx.Panel):