mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-24 13:50:54 +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(
|
setuptools.setup(
|
||||||
name="vmcompact",
|
name="vmcompact",
|
||||||
version="1.2.4",
|
version="1.2.5",
|
||||||
author="Onyx and Iris",
|
author="Onyx and Iris",
|
||||||
author_email="code@onyxandiris.online",
|
author_email="code@onyxandiris.online",
|
||||||
description="Compact Tkinter Voicemeeter Remote App",
|
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
|
Checks offset against expected level array size to avoid a race condition
|
||||||
"""
|
"""
|
||||||
if self.level_offset + 1 < len(self.parent.parent.strip_levels):
|
if self.level_offset + 1 < len(self.parent.parent.strip_levels):
|
||||||
if any(
|
if (
|
||||||
self.parent.parent.strip_comp[self.level_offset : self.level_offset + 1]
|
any(
|
||||||
|
self.parent.parent.strip_comp[
|
||||||
|
self.level_offset : self.level_offset + 1
|
||||||
|
]
|
||||||
|
)
|
||||||
|
or self.level.get() > 0
|
||||||
):
|
):
|
||||||
val = self.convert_level(
|
val = self.convert_level(
|
||||||
max(
|
max(
|
||||||
@ -204,8 +209,13 @@ class Bus(ChannelLabelFrame):
|
|||||||
|
|
||||||
def upd_levels(self):
|
def upd_levels(self):
|
||||||
if self.level_offset + 1 < len(self.parent.parent.bus_levels):
|
if self.level_offset + 1 < len(self.parent.parent.bus_levels):
|
||||||
if any(
|
if (
|
||||||
self.parent.parent.bus_comp[self.level_offset : self.level_offset + 1]
|
any(
|
||||||
|
self.parent.parent.bus_comp[
|
||||||
|
self.level_offset : self.level_offset + 1
|
||||||
|
]
|
||||||
|
)
|
||||||
|
or self.level.get() > 0
|
||||||
):
|
):
|
||||||
val = self.convert_level(
|
val = self.convert_level(
|
||||||
max(
|
max(
|
||||||
|
@ -139,8 +139,13 @@ class GainLayer(ttk.LabelFrame):
|
|||||||
Checks offset against expected level array size to avoid a race condition
|
Checks offset against expected level array size to avoid a race condition
|
||||||
"""
|
"""
|
||||||
if self.level_offset + 1 < len(self.parent.parent.strip_levels):
|
if self.level_offset + 1 < len(self.parent.parent.strip_levels):
|
||||||
if any(
|
if (
|
||||||
self.parent.parent.strip_comp[self.level_offset : self.level_offset + 1]
|
any(
|
||||||
|
self.parent.parent.strip_comp[
|
||||||
|
self.level_offset : self.level_offset + 1
|
||||||
|
]
|
||||||
|
)
|
||||||
|
or self.level.get() > 0
|
||||||
):
|
):
|
||||||
val = self.convert_level(
|
val = self.convert_level(
|
||||||
max(
|
max(
|
||||||
|
Loading…
Reference in New Issue
Block a user