Cleanup connection handling in QML

Consistently pass connection objects to files that need them instead of randomly using Controller.activeConnection in some of them
This commit is contained in:
Tobias Fella
2023-09-12 17:10:16 +02:00
committed by Carl Schwan
parent 6439fa48f9
commit 5e80715898
37 changed files with 203 additions and 72 deletions

View File

@@ -243,6 +243,8 @@ ColumnLayout {
*/
readonly property alias hovered: bubble.hovered
required property NeoChatConnection connection
/**
* @brief Open the context menu for the message.
*/
@@ -612,6 +614,7 @@ ColumnLayout {
file: file,
progressInfo: root.progressInfo,
plainText: root.plainText,
connection: root.connection,
});
contextMenu.open();
}
@@ -626,6 +629,7 @@ ColumnLayout {
eventType: root.delegateType,
plainText: root.plainText,
htmlText: root.display,
connection: root.connection,
});
contextMenu.open();
}