Fix highlighted behavior after options drawer was opened
This commit is contained in:
parent
e2e78713df
commit
7ae58badd9
3 changed files with 6 additions and 5 deletions
|
@ -43,8 +43,9 @@ ListItem {
|
|||
});
|
||||
readonly property bool isOwnMessage: page.myUserId === myMessage.sender.user_id
|
||||
property bool hasContentComponent
|
||||
property bool additionalOptionsOpened
|
||||
|
||||
highlighted: (down || isSelected) && !menuOpen
|
||||
highlighted: (down || isSelected || additionalOptionsOpened) && !menuOpen
|
||||
openMenuOnPressAndHold: !messageListItem.precalculatedValues.pageIsSelecting
|
||||
|
||||
signal replyToMessage()
|
||||
|
@ -81,7 +82,7 @@ ListItem {
|
|||
Connections {
|
||||
target: messageOptionsDrawer
|
||||
onCloseRequested: {
|
||||
messageListItem.highlighted = false;
|
||||
messageListItem.additionalOptionsOpened = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -119,7 +120,7 @@ ListItem {
|
|||
messageOptionsDrawer.userInformation = userInformation;
|
||||
messageOptionsDrawer.sourceItem = messageListItem
|
||||
messageOptionsDrawer.additionalItemsModel = (extraContentLoader.item && ("extraContextMenuItems" in extraContentLoader.item)) ? extraContentLoader.item.extraContextMenuItems : 0;
|
||||
messageListItem.highlighted = true;
|
||||
messageListItem.additionalOptionsOpened = true;
|
||||
messageOptionsDrawer.open = true;
|
||||
}
|
||||
text: qsTr("More Options...")
|
||||
|
|
|
@ -12,7 +12,7 @@ Name: harbour-fernschreiber
|
|||
|
||||
Summary: Fernschreiber is a Telegram client for Sailfish OS
|
||||
Version: 0.7.1
|
||||
Release: 4
|
||||
Release: 5
|
||||
Group: Qt/Qt
|
||||
License: LICENSE
|
||||
URL: http://werkwolf.eu/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Name: harbour-fernschreiber
|
||||
Summary: Fernschreiber is a Telegram client for Sailfish OS
|
||||
Version: 0.7.1
|
||||
Release: 4
|
||||
Release: 5
|
||||
# The contents of the Group field should be one of the groups listed here:
|
||||
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
|
||||
Group: Qt/Qt
|
||||
|
|
Loading…
Reference in a new issue