grc: disabled block IDs renamed when copied if duplicate
|Assignee:||Josh Blum||% Done:||
When a block is copy/pasted, its ID is renamed if a block of that ID already exists. This behavior should not be in effect for disabled blocks.
Updated by Sreeraj Rajendran about 1 month ago
Is this really a bug?. Renaming the block id while pasting, even if the block id is not unique when checked with a "disabled" block, will help to avoid block_id checks while re-enabling "disabled blocks".
If my understanding is right in line 158 of FlowGraph.py
if param_value in [block.get_id() if block.get_enabled() else '' for block in self.get_blocks()]:
+ some id checks during BLOCK_ENABLE are required for this.