Skip to content

Commit

Permalink
Transport logic improvements, fix bugs when doing weird things
Browse files Browse the repository at this point in the history
  • Loading branch information
L3337 committed Jul 10, 2023
1 parent 2240601 commit 5aa0e6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sgui/daw/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ def on_rec(self):
):
QMessageBox.warning(
self.group_box,
_("Error"),
_("No MIDI or audio inputs record-armed")
"Error",
"No MIDI or audio inputs record-armed. See the Hardware tab",
)
return False
shared.PLAYLIST_EDITOR.on_play()
Expand Down
3 changes: 3 additions & 0 deletions src/sgui/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ def on_spacebar(self):
def on_play(self):
if not self.play_button.isChecked():
return
if shared.IS_PLAYING:
self.play_button.setChecked(True)
return
if shared.IS_RECORDING:
self.rec_button.setChecked(True)
return
Expand Down

0 comments on commit 5aa0e6e

Please sign in to comment.