Use new PCN format for settings config file

This commit is contained in:
miruka
2020-10-07 20:12:32 -04:00
parent 6ce3059322
commit db12036372
52 changed files with 1305 additions and 409 deletions

View File

@@ -109,7 +109,7 @@ class Backend:
self.settings = Settings(self)
self.ui_state = UIState(self)
self.history = History(self)
self.theme = Theme(self, self.settings["theme"])
self.theme = Theme(self, self.settings.General.theme)
self.clients: Dict[str, MatrixClient] = {}
@@ -427,13 +427,13 @@ class Backend:
return path
async def get_settings(self) -> Tuple[Settings, UIState, History, str]:
async def get_settings(self) -> Tuple[dict, UIState, History, str]:
"""Return parsed user config files for QML."""
return (
self.settings.data,
self.ui_state.data,
self.history.data,
self.theme.data,
self.settings.qml_data,
self.ui_state.qml_data,
self.history.qml_data,
self.theme.qml_data,
)