channel_xpadding and navigation_show added to data.

app.toml example now includes channel padding and nav show

[channel] xpadding and [navigation] show added to app.toml

delay parameter updates if gui needed launching
This commit is contained in:
2023-06-29 17:15:03 +01:00
parent 2ec1c74b7d
commit 1e3751b19f
4 changed files with 33 additions and 14 deletions

View File

@@ -32,10 +32,15 @@ class Configurations(metaclass=SingletonMeta):
# bus assigned as current submix
submixes: int = configuration["submixes"]["default"]
# width of a single labelframe
level_width: int = configuration["channel"]["width"]
# height of a single labelframe
level_height: int = configuration["channel"]["height"]
# width of a single channel labelframe
channel_width: int = configuration["channel"]["width"]
# height of a single channel labelframe
channel_height: int = configuration["channel"]["height"]
# xpadding for a single channel labelframe
channel_xpadding: int = configuration["channel"]["xpadding"]
# do we grid the navigation frame?
navigation_show: bool = configuration["navigation"]["show"]
@property
def config(self):
@@ -46,7 +51,7 @@ class Configurations(metaclass=SingletonMeta):
@dataclass
class BaseValues(metaclass=SingletonMeta):
# pause updates after releasing scale
run_update: bool = True
run_update: bool = False
# are we dragging main window with mouse 1
dragging: bool = False
# a vban connection established