mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
[ui]Do not allow to start a new connection on an already connected input
This commit is contained in:
parent
502e912f77
commit
9f5775cc6b
1 changed files with 3 additions and 2 deletions
|
@ -124,7 +124,8 @@ RowLayout {
|
|||
|
||||
MouseArea {
|
||||
id: inputConnectMA
|
||||
drag.target: inputDragTarget
|
||||
// If an input attribute is connected (isLink), we disable drag&drop
|
||||
drag.target: attribute.isLink ? undefined : inputDragTarget
|
||||
drag.threshold: 0
|
||||
enabled: !root.readOnly
|
||||
anchors.fill: parent
|
||||
|
@ -277,7 +278,7 @@ RowLayout {
|
|||
}
|
||||
}
|
||||
|
||||
state: inputConnectMA.pressed ? "DraggingInput" : outputConnectMA.pressed ? "DraggingOutput" : ""
|
||||
state: (inputConnectMA.pressed && !attribute.isLink) ? "DraggingInput" : outputConnectMA.pressed ? "DraggingOutput" : ""
|
||||
|
||||
states: [
|
||||
State {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue