mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Close edit drawer when current dive changes
This prevents having the edit drawer opened at a different than the current dive. Signed-off-by: Sebastian Kügler <sebas@kde.org>
This commit is contained in:
parent
1030cb265a
commit
e9e843dc3c
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,6 @@ MobileComponents.Page {
|
||||||
currentIndex: -1
|
currentIndex: -1
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
maximumFlickVelocity: parent.width/4
|
maximumFlickVelocity: parent.width/4
|
||||||
//cacheBuffer: parent.width/2
|
|
||||||
orientation: ListView.Horizontal
|
orientation: ListView.Horizontal
|
||||||
focus: true
|
focus: true
|
||||||
clip: true
|
clip: true
|
||||||
|
@ -61,6 +60,9 @@ MobileComponents.Page {
|
||||||
onMovementEnded: {
|
onMovementEnded: {
|
||||||
currentIndex = indexAt(contentX+1, 1);
|
currentIndex = indexAt(contentX+1, 1);
|
||||||
}
|
}
|
||||||
|
onCurrentIndexChanged: {
|
||||||
|
editDrawer.close();
|
||||||
|
}
|
||||||
delegate: ScrollView {
|
delegate: ScrollView {
|
||||||
id: internalScrollView
|
id: internalScrollView
|
||||||
width: diveListView.width
|
width: diveListView.width
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue