Disable new theme test code for now
This commit is contained in:
@@ -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] = {}
|
||||
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user