Disable new theme test code for now

This commit is contained in:
miruka
2021-01-04 00:45:11 -04:00
parent 71acca2168
commit 1a101d9888
6 changed files with 9 additions and 21 deletions

View File

@@ -109,7 +109,8 @@ class Backend:
self.ui_state = UIState(self)
self.history = History(self)
self.theme = Theme(self, self.settings.General.theme)
self.new_theme = NewTheme(self, self.settings.General.new_theme)
# self.new_theme = NewTheme(self, self.settings.General.new_theme)
self.new_theme = NewTheme(self, ".new.py") # TODO
self.clients: Dict[str, MatrixClient] = {}

View File

@@ -386,12 +386,12 @@ class Settings(ConfigFile, PCNFile):
)
UserFileChanged(Theme, self.backend.theme.qml_data)
if self and self.General.new_theme != section.General.new_theme:
self.backend.new_theme.stop_watching()
self.backend.new_theme = NewTheme(
self.backend, section.General.new_theme, # type: ignore
)
UserFileChanged(Theme, self.backend.new_theme.qml_data)
# if self and self.General.new_theme != section.General.new_theme:
# self.backend.new_theme.stop_watching()
# self.backend.new_theme = NewTheme(
# self.backend, section.General.new_theme, # type: ignore
# )
# UserFileChanged(Theme, self.backend.new_theme.qml_data)
return (section, save)