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

@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup(
name="vmcompact",
version="1.2.4",
version="1.2.5",
author="Onyx and Iris",
author_email="code@onyxandiris.online",
description="Compact Tkinter Voicemeeter Remote App",

View File

@ -168,8 +168,13 @@ class Strip(ChannelLabelFrame):
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(
@ -204,8 +209,13 @@ class Bus(ChannelLabelFrame):
def upd_levels(self):
if self.level_offset + 1 < len(self.parent.parent.bus_levels):
if any(
self.parent.parent.bus_comp[self.level_offset : self.level_offset + 1]
if (
any(
self.parent.parent.bus_comp[
self.level_offset : self.level_offset + 1
]
)
or self.level.get() > 0
):
val = self.convert_level(
max(

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(