Reorganize backend files, show accounts in UI

This commit is contained in:
miruka
2019-04-12 04:33:09 -04:00
parent 4f9a47027c
commit 5d4c7b8520
22 changed files with 214 additions and 238 deletions

View File

@@ -11,7 +11,7 @@ from PyQt5.QtQml import QQmlApplicationEngine
from .__about__ import __doc__
from .app import Application
from .backend.matrix_nio.backend import MatrixNioBackend as CurrentBackend
from .backend.backend import Backend
# logging.basicConfig(level=logging.INFO)
@@ -23,7 +23,7 @@ class Engine(QQmlApplicationEngine):
parent: Optional[QObject] = None) -> None:
super().__init__(parent)
self.app = app
self.backend = CurrentBackend()
self.backend = Backend()
self.app_dir = Path(sys.argv[0]).resolve().parent
# Set QML properties