From 7d41530284a67098916ff57f7effe50046096f52 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 10 Aug 2022 15:39:14 +0200 Subject: Fix account switching and hover issues with UserLine component Signed-off-by: Claudio Cambra --- src/gui/tray/UserLine.qml | 2 +- src/gui/tray/Window.qml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3