sforkowany z mirror/rnsutils
Remove only first matching tag
Current implementation would fail when iterating on the next element, looking for tags to remove as we changed the underlying collection. Stopping on first occurence is a fine workaround.master
rodzic
c65b766257
commit
f4b10471fa
|
@ -223,6 +223,7 @@ class RenoiseInstrument(object):
|
|||
tag = self.root.GlobalProperties.Tags.Tag[tag_idx]
|
||||
if tag.text == tag_to_remove:
|
||||
del self.root.GlobalProperties.Tags.Tag[tag_idx]
|
||||
return
|
||||
|
||||
def cleanup(self):
|
||||
# ensure that key mapping remains in the limits of what renoise supports
|
||||
|
|
Ładowanie…
Reference in New Issue