Added setting to disable the server for LAN chromecast devices

This commit is contained in:
Sumner Evans
2020-02-11 16:40:50 -07:00
parent 3626e29525
commit be8fecbd9b
5 changed files with 43 additions and 13 deletions

View File

@@ -154,6 +154,10 @@ class ApplicationState:
def migrate(self):
"""Use this function to migrate any state storage that has changed."""
self.config.migrate()
self.save_config()
if self.config.server:
self.save()
def save(self):
# Make the necessary directories before writing the state.