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:
@@ -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";
|
||||
|
Reference in New Issue
Block a user