Move login and registration to login

To make this work `AccountManager` is split off from controller taking all the code around `AccountRegister` and is added to LibNeoChat as it makes sense to have this functionality there.
This commit is contained in:
James Graham
2025-04-13 11:23:17 +00:00
parent b9ffe12154
commit 866fee2ea3
17 changed files with 544 additions and 271 deletions

View File

@@ -22,8 +22,8 @@ struct ForeignAccountRegistry {
public:
static Quotient::AccountRegistry *create(QQmlEngine *, QJSEngine *)
{
QQmlEngine::setObjectOwnership(&Controller::instance().accounts(), QQmlEngine::CppOwnership);
return &Controller::instance().accounts();
QQmlEngine::setObjectOwnership(Controller::instance().accounts(), QQmlEngine::CppOwnership);
return Controller::instance().accounts();
}
};