1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-02-25 03:46:00 +01:00

Account menu can now scroll

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
This commit is contained in:
Claudio Cambra 2022-01-28 13:42:36 +01:00 committed by allexzander (Rebase PR Action)
parent e94802a338
commit 7a1eae45d3

View File

@ -174,6 +174,22 @@ Window {
radius: Style.currentAccountButtonRadius
}
contentItem: ScrollView {
id: accMenuScrollView
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
data: WheelHandler {
target: accMenuScrollView.contentItem
}
ListView {
implicitHeight: contentHeight
model: accountMenu.contentModel
interactive: true
clip: true
currentIndex: accountMenu.currentIndex
}
}
onClosed: {
// HACK: reload account Instantiator immediately by restting it - could be done better I guess
// see also onVisibleChanged above