mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +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
|
border.color: subsurfaceTheme.primaryColor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onVisibleChanged: {
|
||||||
|
if (visible) {
|
||||||
|
qmlProfile.diveId = model.dive.id;
|
||||||
|
qmlProfile.update();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
id: noProfile
|
id: noProfile
|
||||||
|
@ -397,8 +404,6 @@ Item {
|
||||||
}
|
}
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
qmlProfile.setMargin(Kirigami.Units.smallSpacing)
|
qmlProfile.setMargin(Kirigami.Units.smallSpacing)
|
||||||
qmlProfile.diveId = model.dive.id;
|
|
||||||
qmlProfile.update();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue