started to refactor Application
This commit is contained in:
@@ -33,7 +33,7 @@ AccountController::AccountController()
|
||||
});
|
||||
}
|
||||
|
||||
void AccountController::load()
|
||||
void AccountController::initialize(Application &app)
|
||||
{
|
||||
this->twitch.load();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "common/Singleton.hpp"
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "common/SignalVector.hpp"
|
||||
@@ -11,14 +13,14 @@ namespace chatterino {
|
||||
|
||||
class AccountModel;
|
||||
|
||||
class AccountController
|
||||
class AccountController : public Singleton
|
||||
{
|
||||
public:
|
||||
AccountController();
|
||||
|
||||
AccountModel *createModel(QObject *parent);
|
||||
|
||||
void load();
|
||||
virtual void initialize(Application &app) override;
|
||||
|
||||
TwitchAccountManager twitch;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user