mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: removed setting for libdivecomputer.log
Users need a simple way to report download problems. Asking them to go into settings, activate logging, and repeat the download is too much. libdivecomputer.log will always be generated, but overwritten, with every download, so the latest log is ready. The download is very slow due to BT, so there are no impact of having the log active, neither in terms of size (a concern on small mobiles) or write time. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
67838de5bc
commit
571965ec6d
4 changed files with 2 additions and 48 deletions
|
@ -34,7 +34,7 @@ Kirigami.Page {
|
|||
deviceData.deviceId : 0
|
||||
deviceData.diveId : 0
|
||||
deviceData.saveDump : false
|
||||
deviceData.saveLog : false
|
||||
deviceData.saveLog : true
|
||||
|
||||
onFinished : {
|
||||
importModel.repopulate()
|
||||
|
|
|
@ -306,38 +306,6 @@ Kirigami.ScrollablePage {
|
|||
opacity: 0.5
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
GridLayout {
|
||||
id: libdclogprefs
|
||||
columns: 2
|
||||
width: parent.width
|
||||
Kirigami.Heading {
|
||||
text: qsTr("Dive computer")
|
||||
color: subsurfaceTheme.textColor
|
||||
level: 4
|
||||
Layout.topMargin: Kirigami.Units.largeSpacing
|
||||
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
|
||||
Layout.columnSpan: 2
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
text: qsTr("Save detailed log")
|
||||
Layout.preferredWidth: gridWidth * 0.75
|
||||
}
|
||||
SsrfSwitch {
|
||||
id: libdclogButton
|
||||
checked: manager.libdcLog
|
||||
Layout.preferredWidth: gridWidth * 0.25
|
||||
onClicked: {
|
||||
manager.libdcLog = checked
|
||||
}
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
color: subsurfaceTheme.darkerPrimaryColor
|
||||
height: 1
|
||||
opacity: 0.5
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
GridLayout {
|
||||
id: developer
|
||||
columns: 2
|
||||
|
|
|
@ -137,8 +137,7 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
|||
m_selectedDiveTimestamp(0),
|
||||
m_credentialStatus(CS_UNKNOWN),
|
||||
alreadySaving(false),
|
||||
m_device_data(new DCDeviceData(this)),
|
||||
m_libdcLog(false)
|
||||
m_device_data(new DCDeviceData(this))
|
||||
{
|
||||
m_instance = this;
|
||||
m_lastDevicePixelRatio = qApp->devicePixelRatio();
|
||||
|
@ -1634,13 +1633,6 @@ void QMLManager::setProgressMessage(QString text)
|
|||
emit progressMessageChanged();
|
||||
}
|
||||
|
||||
void QMLManager::setLibdcLog(bool value)
|
||||
{
|
||||
m_libdcLog = value;
|
||||
DCDeviceData::instance()->setSaveLog(value);
|
||||
emit libdcLogChanged();
|
||||
}
|
||||
|
||||
void QMLManager::setDeveloper(bool value)
|
||||
{
|
||||
m_developer = value;
|
||||
|
|
|
@ -44,7 +44,6 @@ class QMLManager : public QObject {
|
|||
Q_PROPERTY(QStringList cylinderInit READ cylinderInit CONSTANT)
|
||||
Q_PROPERTY(bool showPin MEMBER m_showPin WRITE setShowPin NOTIFY showPinChanged)
|
||||
Q_PROPERTY(QString progressMessage MEMBER m_progressMessage WRITE setProgressMessage NOTIFY progressMessageChanged)
|
||||
Q_PROPERTY(bool libdcLog MEMBER m_libdcLog WRITE setLibdcLog NOTIFY libdcLogChanged)
|
||||
Q_PROPERTY(bool developer MEMBER m_developer WRITE setDeveloper NOTIFY developerChanged)
|
||||
Q_PROPERTY(bool btEnabled MEMBER m_btEnabled WRITE setBtEnabled NOTIFY btEnabledChanged)
|
||||
|
||||
|
@ -122,9 +121,6 @@ public:
|
|||
QString progressMessage() const;
|
||||
void setProgressMessage(QString text);
|
||||
|
||||
bool libdcLog() const;
|
||||
void setLibdcLog(bool value);
|
||||
|
||||
bool developer() const;
|
||||
void setDeveloper(bool value);
|
||||
|
||||
|
@ -241,7 +237,6 @@ private:
|
|||
bool m_showPin;
|
||||
DCDeviceData *m_device_data;
|
||||
QString m_progressMessage;
|
||||
bool m_libdcLog;
|
||||
bool m_developer;
|
||||
bool m_btEnabled;
|
||||
void updateAllGlobalLists();
|
||||
|
@ -274,7 +269,6 @@ signals:
|
|||
void showPinChanged();
|
||||
void sendScreenChanged(QScreen *screen);
|
||||
void progressMessageChanged();
|
||||
void libdcLogChanged();
|
||||
void developerChanged();
|
||||
void btEnabledChanged();
|
||||
void suitListChanged();
|
||||
|
|
Loading…
Add table
Reference in a new issue