From 24c97964b2c4fc3d0508aa2e5c91e2b86c3a6eb7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 5 May 2022 16:03:49 +0100 Subject: [PATCH] fix bug fetching strip labels for gainlayer --- CHANGELOG.md | 1 + setup.py | 2 +- vmcompact/gainlayer.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed67db6..37e70e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] - [ ] Allow setting a bus mode from config +- [x] Fixed bug with gainlayer sync fetching strip label. ## [1.1.0] - 2022-05-05 diff --git a/setup.py b/setup.py index b623846..9c3d499 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="vmcompact", - version="1.1.0", + version="1.1.1", author="Onyx and Iris", author_email="code@onyxandiris.online", description="Compact Tkinter Voicemeeter Remote App", diff --git a/vmcompact/gainlayer.py b/vmcompact/gainlayer.py index bd7b974..eff8c1c 100644 --- a/vmcompact/gainlayer.py +++ b/vmcompact/gainlayer.py @@ -165,7 +165,7 @@ class GainLayer(ttk.LabelFrame): def sync(self): """sync params with voicemeeter""" - retval = self.getter("label") + retval = self._parent.target.strip[self.index].label if len(retval) > 10: retval = f"{retval[:8]}.." self.configure(text=retval)