From: Claudio Cambra Date: Fri, 28 Jan 2022 12:42:36 +0000 (+0100) Subject: Account menu can now scroll X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~17^2~169^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7a1eae45d3adb9c4bf2bcd3e1a6f76e4a36db50e;p=nextcloud-desktop.git Account menu can now scroll Signed-off-by: Claudio Cambra --- diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index 631097879..bf4ba5a9a 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -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