Using MS/Apple official names for stores (#8959)

This commit is contained in:
Crist Ye 2020-11-02 15:14:57 +08:00 committed by GitHub
parent 12a77cffd8
commit 60f91ebce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -634,18 +634,18 @@ void SessionPrivate::tryToSend() {
: _instance->systemVersion(); : _instance->systemVersion();
#if defined OS_MAC_STORE #if defined OS_MAC_STORE
const auto appVersion = QString::fromLatin1(AppVersionStr) const auto appVersion = QString::fromLatin1(AppVersionStr)
+ " mac store"; + " Mac App Store";
#elif defined OS_WIN_STORE // OS_MAC_STORE #elif defined OS_WIN_STORE // OS_MAC_STORE
const auto appVersion = QString::fromLatin1(AppVersionStr) const auto appVersion = QString::fromLatin1(AppVersionStr)
+ " win store"; + " Microsoft Store";
#elif defined Q_OS_UNIX && !defined Q_OS_MAC // OS_MAC_STORE || OS_WIN_STORE #elif defined Q_OS_UNIX && !defined Q_OS_MAC // OS_MAC_STORE || OS_WIN_STORE
const auto appVersion = [] { const auto appVersion = [] {
if (Platform::InFlatpak()) { if (Platform::InFlatpak()) {
return QString::fromLatin1(AppVersionStr) return QString::fromLatin1(AppVersionStr)
+ " flatpak"; + " Flatpak";
} else if (Platform::InSnap()) { } else if (Platform::InSnap()) {
return QString::fromLatin1(AppVersionStr) return QString::fromLatin1(AppVersionStr)
+ " snap"; + " Snap";
} }
return QString::fromLatin1(AppVersionStr); return QString::fromLatin1(AppVersionStr);
}(); }();