mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Allow to customize check/load way in autoupdate.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -7,6 +7,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
namespace MTP {
|
||||||
|
class Instance;
|
||||||
|
} // namespace MTP
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
||||||
#ifndef TDESKTOP_DISABLE_AUTOUPDATE
|
#ifndef TDESKTOP_DISABLE_AUTOUPDATE
|
||||||
@@ -37,6 +41,8 @@ public:
|
|||||||
void stop();
|
void stop();
|
||||||
void test();
|
void test();
|
||||||
|
|
||||||
|
void setMtproto(const QPointer<MTP::Instance> &mtproto);
|
||||||
|
|
||||||
State state() const;
|
State state() const;
|
||||||
int already() const;
|
int already() const;
|
||||||
int size() const;
|
int size() const;
|
||||||
|
@@ -26,6 +26,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "lang/lang_translator.h"
|
#include "lang/lang_translator.h"
|
||||||
#include "lang/lang_cloud_manager.h"
|
#include "lang/lang_cloud_manager.h"
|
||||||
#include "lang/lang_hardcoded.h"
|
#include "lang/lang_hardcoded.h"
|
||||||
|
#include "core/update_checker.h"
|
||||||
#include "observer_peer.h"
|
#include "observer_peer.h"
|
||||||
#include "storage/file_upload.h"
|
#include "storage/file_upload.h"
|
||||||
#include "mainwidget.h"
|
#include "mainwidget.h"
|
||||||
@@ -462,7 +463,10 @@ void Messenger::startMtp() {
|
|||||||
_private->storedAuthSession.reset();
|
_private->storedAuthSession.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
_langCloudManager = std::make_unique<Lang::CloudManager>(langpack(), mtp());
|
_langCloudManager = std::make_unique<Lang::CloudManager>(
|
||||||
|
langpack(),
|
||||||
|
mtp());
|
||||||
|
Core::UpdateChecker().setMtproto(mtp());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Messenger::destroyMtpKeys(MTP::AuthKeysList &&keys) {
|
void Messenger::destroyMtpKeys(MTP::AuthKeysList &&keys) {
|
||||||
|
Reference in New Issue
Block a user