Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions actions/Filter/FilterBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def show_current_filter_status(self):
self.show_for_state(State.DISABLED)

def show_for_state(self, state: State):
self.hide_error()
if state == self.current_state:
return

Expand Down
3 changes: 2 additions & 1 deletion actions/InputDial/InputDial.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def show_current_input_volume(self):
self.volume = self.db_to_volume(status["volume"])

# Now render the button
self.hide_error()
image = "input_muted.png" if self.muted else "input_unmuted.png"
label = f"{self.volume}%"

Expand Down Expand Up @@ -218,4 +219,4 @@ def db_to_volume(self, db):
return 0
if db > 0:
return 100
return math.floor(1.5**(db/10) * 100)
return math.floor(1.5**(db/10) * 100)
1 change: 1 addition & 0 deletions actions/InputMute/InputMuteBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def show_for_state(self, state: State):
State.DISABLED: Input unmuted
State.ENABLED: Input muted
"""
self.hide_error()
if state == self.current_state:
return

Expand Down
1 change: 1 addition & 0 deletions actions/SceneItem/SceneItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def show_current_scene_item_status(self):
self.show_for_state(State.DISABLED)

def show_for_state(self, state: State):
self.hide_error()
if state == self.current_state:
return

Expand Down
3 changes: 2 additions & 1 deletion actions/ToggleRecord/ToggleRecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def show_for_state(self, state: int):
2: Paused
3: Stopping in progress
"""
self.hide_error()
if state in [1, 2]:
self.show_rec_time()

Expand Down Expand Up @@ -93,4 +94,4 @@ def show_rec_time(self):
if not status["active"]:
self.set_bottom_label(None)
return
self.set_bottom_label(status["timecode"][:-4], font_size=16)
self.set_bottom_label(status["timecode"][:-4], font_size=16)
3 changes: 2 additions & 1 deletion actions/ToggleReplayBuffer/ToggleReplayBuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def show_for_state(self, state: int):
0: Replay Buffer Turned Off
1: Replay Buffer Turned On
"""
self.hide_error()
if state == self.current_state:
return

Expand Down Expand Up @@ -78,4 +79,4 @@ def on_key_down(self):
self.on_tick()

def on_tick(self):
self.show_current_replay_buffer_status()
self.show_current_replay_buffer_status()
3 changes: 2 additions & 1 deletion actions/ToggleStream/ToggleStream.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def show_for_state(self, state: int):
1: Streaming Connected
2: Streaming Reconnecting
"""
self.hide_error()
if state in [1, 2]:
self.show_stream_time()

Expand Down Expand Up @@ -92,4 +93,4 @@ def show_stream_time(self):
if not status["active"]:
self.set_bottom_label(None)
return
self.set_bottom_label(status["timecode"][:-4])
self.set_bottom_label(status["timecode"][:-4])
3 changes: 2 additions & 1 deletion actions/ToggleStudioMode/ToggleStudioMode.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def show_for_state(self, state: int):
0: Studio Mode Turned Off
1: Studio Mode Turned On
"""
self.hide_error()
if state == self.current_state:
return

Expand Down Expand Up @@ -78,4 +79,4 @@ def on_key_down(self):
self.on_tick()

def on_tick(self):
self.show_current_studio_mode_status()
self.show_current_studio_mode_status()
3 changes: 2 additions & 1 deletion actions/ToggleVirtualCamera/ToggleVirtualCamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def show_for_state(self, state: int):
0: Virtual Camera Turned Off
1: Virtual Camera Turned On
"""
self.hide_error()
if state == self.current_state:
return

Expand Down Expand Up @@ -78,4 +79,4 @@ def on_key_down(self):
self.on_tick()

def on_tick(self):
self.show_current_virtual_camera_status()
self.show_current_virtual_camera_status()