mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
Remove spurious log message
This commit is contained in:
parent
9c622b60b9
commit
ea6d50d114
1 changed files with 14 additions and 17 deletions
|
@ -57,8 +57,6 @@ Item {
|
||||||
anchors.rightMargin: scrollbar.interactive? scrollbar.width : 0
|
anchors.rightMargin: scrollbar.interactive? scrollbar.width : 0
|
||||||
|
|
||||||
Control {
|
Control {
|
||||||
//closePolicy: Popup.NoAutoClose
|
|
||||||
|
|
||||||
id: messageActions
|
id: messageActions
|
||||||
|
|
||||||
property Item attached: null
|
property Item attached: null
|
||||||
|
@ -73,10 +71,10 @@ Item {
|
||||||
z: 10
|
z: 10
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: Nheko.colors.window
|
color: Nheko.colors.window
|
||||||
border.color: Nheko.colors.buttonText
|
border.color: Nheko.colors.buttonText
|
||||||
border.width: 1
|
border.width: 1
|
||||||
radius: padding
|
radius: padding
|
||||||
}
|
}
|
||||||
|
|
||||||
contentItem: Row {
|
contentItem: Row {
|
||||||
|
@ -119,7 +117,7 @@ Item {
|
||||||
ToolTip.text: qsTr("Edit")
|
ToolTip.text: qsTr("Edit")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (row.model.isEditable)
|
if (row.model.isEditable)
|
||||||
chat.model.editAction(row.model.eventId);
|
chat.model.editAction(row.model.eventId);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -195,9 +193,9 @@ Item {
|
||||||
sequence: StandardKey.Cancel
|
sequence: StandardKey.Cancel
|
||||||
onActivated: {
|
onActivated: {
|
||||||
if (chat.model.reply)
|
if (chat.model.reply)
|
||||||
chat.model.reply = undefined;
|
chat.model.reply = undefined;
|
||||||
else
|
else
|
||||||
chat.model.edit = undefined;
|
chat.model.edit = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,7 +246,7 @@ Item {
|
||||||
// force current read index to update
|
// force current read index to update
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (chat.model)
|
if (chat.model)
|
||||||
chat.model.setCurrentIndex(chat.model.currentIndex);
|
chat.model.setCurrentIndex(chat.model.currentIndex);
|
||||||
|
|
||||||
}
|
}
|
||||||
interval: 1000
|
interval: 1000
|
||||||
|
@ -509,21 +507,20 @@ Item {
|
||||||
y: section.visible && section.active ? section.y + section.height : 0
|
y: section.visible && section.active ? section.y + section.height : 0
|
||||||
|
|
||||||
onHoveredChanged: {
|
onHoveredChanged: {
|
||||||
console.log("Hover changed: " + hovered + " w: " + wrapper.hovered + " h: "+ messageActions.hovered + " obj: " + timelinerow)
|
if (!Settings.mobileMode && hovered) {
|
||||||
if (!Settings.mobileMode && hovered) {
|
if (!messageActions.hovered) {
|
||||||
if (!messageActions.hovered) {
|
messageActions.attached = timelinerow;
|
||||||
messageActions.attached = timelinerow;
|
messageActions.model = timelinerow;
|
||||||
messageActions.model = timelinerow;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
function onMovementEnded() {
|
function onMovementEnded() {
|
||||||
if (y + height + 2 * chat.spacing > chat.contentY + chat.height && y < chat.contentY + chat.height)
|
if (y + height + 2 * chat.spacing > chat.contentY + chat.height && y < chat.contentY + chat.height)
|
||||||
chat.model.currentIndex = index;
|
chat.model.currentIndex = index;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue