mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +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();
|
||||
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)
|
||||
appLogFileName = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).first() + "/subsurface.log";
|
||||
appLogFile.setFileName(appLogFileName);
|
||||
|
@ -1553,6 +1555,7 @@ bool QMLManager::libdcLog() const
|
|||
void QMLManager::setLibdcLog(bool value)
|
||||
{
|
||||
m_libdcLog = value;
|
||||
DCDeviceData::instance()->setSaveLog(value);
|
||||
emit libdcLogChanged();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue