From: Claudio Cambra Date: Wed, 10 Aug 2022 13:39:14 +0000 (+0200) Subject: Fix account switching and hover issues with UserLine component X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~15^2~39^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7d41530284a67098916ff57f7effe50046096f52;p=nextcloud-desktop.git Fix account switching and hover issues with UserLine component Signed-off-by: Claudio Cambra --- diff --git a/src/gui/tray/UserLine.qml b/src/gui/tray/UserLine.qml index 6a064f5c8..204a7c86e 100644 --- a/src/gui/tray/UserLine.qml +++ b/src/gui/tray/UserLine.qml @@ -46,7 +46,7 @@ AbstractButton { height: width anchors.bottom: accountAvatar.bottom anchors.right: accountAvatar.right - color: accountButton.hovered || accountButton.visualFocus ? "#f6f6f6" : "white" + color: userLine.hovered || userLine.visualFocus ? "#f6f6f6" : "white" radius: width*0.5 } diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index bc629d8ee..867bfc5c4 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -254,6 +254,7 @@ ApplicationWindow { userStatusDrawer.openUserStatusDrawer(model.index); accountMenu.close(); } + onClicked: UserModel.currentUserId = model.index; } onObjectAdded: accountMenu.insertItem(index, object) onObjectRemoved: accountMenu.removeItem(object)