Don't use user theme in debug mode

This commit is contained in:
miruka
2019-07-24 18:46:13 -04:00
parent b6290ad3c9
commit a2469bd994
3 changed files with 8 additions and 2 deletions

View File

@@ -151,6 +151,10 @@ class Theme(ConfigFile):
async def read(self) -> str:
# pylint: disable=no-member
if self.backend.app.debug:
return convert_to_qml(await self.default_data())
if not self.path.exists():
await self.write(await self.default_data())