mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile/summary: recalculate first and last dive on visibility change
Recalcluate not only the statistics for the given period, but also the global first and last dive date. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f7c73f1987
commit
48ccd114fc
1 changed files with 4 additions and 1 deletions
|
@ -16,8 +16,11 @@ Kirigami.ScrollablePage {
|
||||||
title: qsTr("Dive summary")
|
title: qsTr("Dive summary")
|
||||||
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if (visible)
|
if (visible) {
|
||||||
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
|
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
|
||||||
|
firstDive = Backend.firstDiveDate()
|
||||||
|
lastDive = Backend.lastDiveDate()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
target: Backend
|
target: Backend
|
||||||
|
|
Loading…
Add table
Reference in a new issue