mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Moved proxy global variables from facades to core settings.
This commit is contained in:
@@ -30,7 +30,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "main/main_session.h"
|
||||
#include "main/main_domain.h"
|
||||
#include "main/main_session_settings.h"
|
||||
#include "facades.h"
|
||||
|
||||
namespace Main {
|
||||
namespace {
|
||||
@@ -448,7 +447,7 @@ void Account::startMtp(std::unique_ptr<MTP::Config> config) {
|
||||
});
|
||||
_mtp->setStateChangedHandler([=](MTP::ShiftedDcId dc, int32 state) {
|
||||
if (dc == _mtp->mainDcId()) {
|
||||
Global::RefConnectionTypeChanged().notify();
|
||||
Core::App().settings().proxy().connectionTypeChangesNotify();
|
||||
}
|
||||
});
|
||||
_mtp->setSessionResetHandler([=](MTP::ShiftedDcId shiftedDcId) {
|
||||
|
Reference in New Issue
Block a user