mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
mobile: do not call plotDive during startup
Check in profile if visible before calling plotDive Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
0acda9a509
commit
e993d4f005
1 changed files with 7 additions and 2 deletions
|
@ -217,6 +217,13 @@ Item {
|
|||
border.color: subsurfaceTheme.primaryColor
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible) {
|
||||
qmlProfile.diveId = model.dive.id;
|
||||
qmlProfile.update();
|
||||
}
|
||||
}
|
||||
}
|
||||
Controls.Label {
|
||||
id: noProfile
|
||||
|
@ -397,8 +404,6 @@ Item {
|
|||
}
|
||||
Component.onCompleted: {
|
||||
qmlProfile.setMargin(Kirigami.Units.smallSpacing)
|
||||
qmlProfile.diveId = model.dive.id;
|
||||
qmlProfile.update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue