Commit 8ba5e830 authored by Milosz Malczak's avatar Milosz Malczak

gui: when removing the channel, removing the trigger

parent 4329a727
......@@ -67,6 +67,10 @@ class ChannelClosure:
def remove_channel(self, remote=False):
if self.channel_exists():
trigger = self.__GUI.triggers[0]
if(trigger.ADC_idx == self.ADC_channel_idx and
trigger.unique_ADC_name == self.unique_ADC_name):
trigger.remove_trigger()
self.__plot.remove_channel(self.GUI_channel_idx)
if not remote:
self.__zmq_rpc.send_RPC('remove_channel', self.GUI_channel_idx,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment