mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-06 01:25:18 +00:00
Move MTP::Instance to Main::Account.
This commit is contained in:
@@ -13,8 +13,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "base/unixtime.h"
|
||||
#include "storage/localstorage.h"
|
||||
#include "core/application.h"
|
||||
#include "mainwindow.h"
|
||||
#include "core/click_handler_types.h"
|
||||
#include "mainwindow.h"
|
||||
#include "main/main_account.h"
|
||||
#include "info/info_memento.h"
|
||||
#include "info/settings/info_settings_widget.h"
|
||||
#include "window/window_session_controller.h"
|
||||
@@ -1390,7 +1391,7 @@ Updater::~Updater() {
|
||||
UpdateChecker::UpdateChecker()
|
||||
: _updater(GetUpdaterInstance()) {
|
||||
if (IsAppLaunched()) {
|
||||
if (const auto mtproto = Core::App().mtp()) {
|
||||
if (const auto mtproto = Core::App().activeAccount().mtp()) {
|
||||
_updater->setMtproto(mtproto);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user