Inline Edit Loader
Put the edit component in a loader to that it doesn't use resources when not in use. CCBUG: 465715
This commit is contained in:
@@ -24,10 +24,13 @@ TimelineContainer {
|
|||||||
visible: currentRoom.chatBoxEditId !== model.eventId
|
visible: currentRoom.chatBoxEditId !== model.eventId
|
||||||
isEmote: messageDelegate.isEmote
|
isEmote: messageDelegate.isEmote
|
||||||
}
|
}
|
||||||
MessageEditComponent {
|
Loader {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
messageId: model.eventId
|
|
||||||
visible: currentRoom.chatBoxEditId === model.eventId
|
visible: currentRoom.chatBoxEditId === model.eventId
|
||||||
|
active: visible
|
||||||
|
sourceComponent: MessageEditComponent {
|
||||||
|
messageId: model.eventId
|
||||||
|
}
|
||||||
}
|
}
|
||||||
LinkPreviewDelegate {
|
LinkPreviewDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|||||||
Reference in New Issue
Block a user