mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: don't show timer twice in log-message
This was probably an oversight - the timer was only shown for very specific messages. This was change to show the timer for all messages. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e592dfe17c
commit
84b96ac2ae
1 changed files with 1 additions and 3 deletions
|
@ -160,8 +160,6 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
||||||
|
|
||||||
void QMLManager::applicationStateChanged(Qt::ApplicationState state)
|
void QMLManager::applicationStateChanged(Qt::ApplicationState state)
|
||||||
{
|
{
|
||||||
if (!timer.isValid())
|
|
||||||
timer.start();
|
|
||||||
QString stateText;
|
QString stateText;
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case Qt::ApplicationActive: stateText = "active"; break;
|
case Qt::ApplicationActive: stateText = "active"; break;
|
||||||
|
@ -182,7 +180,7 @@ void QMLManager::applicationStateChanged(Qt::ApplicationState state)
|
||||||
// make sure the user sees that we are saving data if they come back
|
// make sure the user sees that we are saving data if they come back
|
||||||
// while this is running
|
// while this is running
|
||||||
saveChangesCloud(false);
|
saveChangesCloud(false);
|
||||||
appendTextToLog(QString::number(timer.elapsed() / 1000.0,'f', 3) + ": done saving to git local / remote");
|
appendTextToLog("done saving to git local / remote");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue