Save configs when they change. Fixes #95

This commit is contained in:
2017-01-14 06:11:41 -06:00
parent 6bb534d250
commit 4d5de6ca69
5 changed files with 26 additions and 8 deletions

View File

@@ -234,6 +234,7 @@ class accountSettingsController(globalSettingsController):
self.buffer.session.sound.config = self.config["sound"]
self.buffer.session.sound.check_soundpack()
self.config["sound"]["sndup_api_key"] = self.dialog.get_value("services", "apiKey")
self.config.write()
def toggle_state(self,*args,**kwargs):
return self.dialog.buffers.change_selected_item()