CONNECT_APPEND_SOURCE_OBJECT on signal emission

This commit is contained in:
kleonc
2025-12-26 12:21:01 +01:00
parent f4499eea4b
commit edd06075e3
6 changed files with 111 additions and 17 deletions

View File

@@ -1668,12 +1668,13 @@ void ConnectionsDock::update_tree() {
if (cd.flags & CONNECT_ONE_SHOT) {
path += " (one-shot)";
}
if (cd.flags & CONNECT_APPEND_SOURCE_OBJECT) {
path += " (source)";
}
if (cd.unbinds > 0) {
path += " unbinds(" + itos(cd.unbinds) + ")";
}
// CONNECT_APPEND_SOURCE_OBJECT is not affected by unbinds, list it between unbinds/binds to better indicate the final order.
if (cd.flags & CONNECT_APPEND_SOURCE_OBJECT) {
path += " (source)";
}
if (!cd.binds.is_empty()) {
path += " binds(";
for (int i = 0; i < cd.binds.size(); i++) {

View File

@@ -84,11 +84,6 @@ public:
unbinds = ccu->get_unbinds();
base_callable = ccu->get_callable();
}
// The source object may already be bound, ignore it to prevent display of the source object.
if ((flags & CONNECT_APPEND_SOURCE_OBJECT) && (source == binds[0])) {
binds.remove_at(0);
}
} else {
base_callable = p_connection.callable;
}