Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Cambra <claudio.cambra@gmail.com>2022-01-28 15:42:36 +0300
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>2022-01-31 18:06:55 +0300
commit7a1eae45d3adb9c4bf2bcd3e1a6f76e4a36db50e (patch)
tree60277379f9a1c1936a85b5898228ccb2c25740f7 /src/gui/tray/Window.qml
parente94802a33805b2fa47f0ae4eba799156bd92c7da (diff)
Account menu can now scroll
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
Diffstat (limited to 'src/gui/tray/Window.qml')
-rw-r--r--src/gui/tray/Window.qml16
1 files changed, 16 insertions, 0 deletions
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