mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-24 05:40:53 +00:00
run a level update if value > 0 << race condition.
patch bump
This commit is contained in:
parent
823c138a5f
commit
6d4d290e9e
2
setup.py
2
setup.py
@ -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",
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user