Make clicks on io menu bundles always connect
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Thu, 24 Aug 2017 09:54:15 +0000 (11:54 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Thu, 24 Aug 2017 13:41:40 +0000 (15:41 +0200)
commitdea8ee7f38c297511d2e12b1e7366b1ac923d1c5
tree921446e12b23021d63b2779c2bccf45bd997319b
parent9c793759c81c306f9cf1dcf8e0be40a4ef16f795
Make clicks on io menu bundles always connect

If a bundle was already connected, a click on the corresponding entry
disconnected it, essentially giving toggle semantics to the io menus.
This behavior has three problems:

 — When clicking on a not yet connected bundle, the new bundle replaces
   any already connected one. This is not consistent with a toggle mode.
 — It is a less discoverable and less easy way to disconnect a bundle
   than the already present "Disconnect" menu entry.
 — Bundles that match the I/O channels only partially (recently added to cater
   for e.g. MIDI+STEREO tracks connecting to Master) are never
   considered "connected" because the channels are not connected 1:1.
   Those will thus never toggle, making the behavior inconsistent.

Change the semantics to ensure a bundle is connected on click instead.
gtk2_ardour/mixer_strip.cc