refactor: include if in portable mode in about copy info
This commit is contained in:
parent
958c3f5a2e
commit
9c45402552
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
#include "ui_AboutDialog.h"
|
#include "ui_AboutDialog.h"
|
||||||
|
|
||||||
#include "common/Constants.h"
|
#include "common/Constants.h"
|
||||||
|
#include "common/Settings.h"
|
||||||
#include "common/VersionInfo.h"
|
#include "common/VersionInfo.h"
|
||||||
|
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
|
|
@ -50,6 +51,9 @@ void AboutDialog::copyVersionText() const
|
||||||
{
|
{
|
||||||
QString infoString = QStringLiteral("%1: %2 (%3)\nQt: %4\nSystem: %5")
|
QString infoString = QStringLiteral("%1: %2 (%3)\nQt: %4\nSystem: %5")
|
||||||
.arg(kAppName, kVersion, kVersionGitSha, qVersion(), QSysInfo::prettyProductName());
|
.arg(kAppName, kVersion, kVersionGitSha, qVersion(), QSysInfo::prettyProductName());
|
||||||
|
if (Settings::isPortableMode()) {
|
||||||
|
infoString.append(QStringLiteral("\nPortable Mode"));
|
||||||
|
}
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
infoString.append(QStringLiteral("\nSession: %1 (%2)")
|
infoString.append(QStringLiteral("\nSession: %1 (%2)")
|
||||||
.arg(qEnvironmentVariable("XDG_CURRENT_DESKTOP"), qEnvironmentVariable("XDG_SESSION_TYPE")));
|
.arg(qEnvironmentVariable("XDG_CURRENT_DESKTOP"), qEnvironmentVariable("XDG_SESSION_TYPE")));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue