run a level update if value > 0 << race condition.

patch bump
This commit is contained in:
onyx-and-iris
2022-05-16 00:28:01 +01:00
parent 823c138a5f
commit 6d4d290e9e
3 changed files with 22 additions and 7 deletions

View File

@@ -139,8 +139,13 @@ class GainLayer(ttk.LabelFrame):
Checks offset against expected level array size to avoid a race condition
"""
if self.level_offset + 1 < len(self.parent.parent.strip_levels):
if any(
self.parent.parent.strip_comp[self.level_offset : self.level_offset + 1]
if (
any(
self.parent.parent.strip_comp[
self.level_offset : self.level_offset + 1
]
)
or self.level.get() > 0
):
val = self.convert_level(
max(