mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +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")
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible)
|
||||
if (visible) {
|
||||
Backend.summaryCalculation(selectionPrimary.currentIndex, selectionSecondary.currentIndex)
|
||||
firstDive = Backend.firstDiveDate()
|
||||
lastDive = Backend.lastDiveDate()
|
||||
}
|
||||
}
|
||||
Connections {
|
||||
target: Backend
|
||||
|
|
Loading…
Reference in a new issue