Catalyst Live: improve connect/disconnect mechanism
Previously, there was no button in the Catalyst toolbar to disconnect to
a catalyst server. User can only do that by using the Files > Disconnect
button which disconnect only the active server. If it
disconnects the wrong server, the simulation can hang indefinitely.
Now, there is a dedicate button Catalyst > Disconnect
which make sure
to disconnect only the catalyst server. If a user tries to disconnect by
using the previous method it will have a warning saying to use this new
button instead.
Other fixes
- fix also a crash regarding the pqSelectionEditor when the active server changed to a catalyst server
- ensure that when we connect/disconnect, the state will be correctly discarded only when it's necessary. Previously, the pipeline used by the simulation could be override and destroy by the pipeline of the live visu
- clean some dead code
Edited by Lucas Givord