mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
OptionsPopup: Reset vertical scroll on tab change
This commit is contained in:
parent
21bf00d1df
commit
405110c80d
1 changed files with 10 additions and 0 deletions
|
@ -54,13 +54,20 @@ Window {
|
|||
if (chkSetUser.checked && !fieldUserPassword.length) {
|
||||
fieldUserPassword.forceActiveFocus()
|
||||
}
|
||||
popupbody.scrollPosition = 0
|
||||
}
|
||||
}
|
||||
TabButton {
|
||||
text: qsTr("Services")
|
||||
onClicked: {
|
||||
popupbody.scrollPosition = 0
|
||||
}
|
||||
}
|
||||
TabButton {
|
||||
text: qsTr("Options")
|
||||
onClicked: {
|
||||
popupbody.scrollPosition = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -73,8 +80,11 @@ Window {
|
|||
anchors.top: bar.bottom
|
||||
anchors.bottom: buttonsRow.top
|
||||
|
||||
property double scrollPosition
|
||||
|
||||
clip: true
|
||||
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
|
||||
ScrollBar.vertical.position: scrollPosition
|
||||
|
||||
StackLayout {
|
||||
id: optionsStack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue