mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: actually write libdc logfile
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
dbb5826f2a
commit
7b922a1f72
1 changed files with 3 additions and 0 deletions
|
@ -92,6 +92,8 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
||||||
m_lastDevicePixelRatio = qApp->devicePixelRatio();
|
m_lastDevicePixelRatio = qApp->devicePixelRatio();
|
||||||
connect(qobject_cast<QApplication *>(QApplication::instance()), &QApplication::applicationStateChanged, this, &QMLManager::applicationStateChanged);
|
connect(qobject_cast<QApplication *>(QApplication::instance()), &QApplication::applicationStateChanged, this, &QMLManager::applicationStateChanged);
|
||||||
|
|
||||||
|
QString libdcLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/libdivecomputer.log";
|
||||||
|
logfile_name = strdup(libdcLogFileName.toUtf8().data());
|
||||||
#if defined(Q_OS_ANDROID)
|
#if defined(Q_OS_ANDROID)
|
||||||
appLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/subsurface.log";
|
appLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/subsurface.log";
|
||||||
appLogFile.setFileName(appLogFileName);
|
appLogFile.setFileName(appLogFileName);
|
||||||
|
@ -1553,6 +1555,7 @@ bool QMLManager::libdcLog() const
|
||||||
void QMLManager::setLibdcLog(bool value)
|
void QMLManager::setLibdcLog(bool value)
|
||||||
{
|
{
|
||||||
m_libdcLog = value;
|
m_libdcLog = value;
|
||||||
|
DCDeviceData::instance()->setSaveLog(value);
|
||||||
emit libdcLogChanged();
|
emit libdcLogChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue