2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Decouple MTP::Instance from Core::App.

This commit is contained in:
John Preston
2019-02-01 10:48:31 +03:00
parent 4f3263d979
commit f5cc93ec64
5 changed files with 44 additions and 5 deletions

View File

@@ -820,10 +820,10 @@ void ConnectionPrivate::tryToSend() {
const auto langPackName = _connectionOptions->langPackName;
const auto deviceModel = (_dcType == DcType::Cdn)
? "n/a"
: Core::App().launcher()->deviceModel();
: _instance->deviceModel();
const auto systemVersion = (_dcType == DcType::Cdn)
? "n/a"
: Core::App().launcher()->systemVersion();
: _instance->systemVersion();
#if defined OS_MAC_STORE || defined OS_WIN_STORE
const auto appVersion = QString::fromLatin1(AppVersionStr)
+ " store";