Skip to content

Commit

Permalink
Fix account switching and hover issues with UserLine component
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
  • Loading branch information
claucambra authored and allexzander committed Aug 10, 2022
1 parent ddcb834 commit 7d41530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/tray/UserLine.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions src/gui/tray/Window.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d41530

Please sign in to comment.