From 5aa0e6eb4e0d71dd15fe7b1c7869395743b1dbd8 Mon Sep 17 00:00:00 2001 From: Anon McHacker Date: Sun, 9 Jul 2023 20:20:38 -0700 Subject: [PATCH] Transport logic improvements, fix bugs when doing weird things --- src/sgui/daw/transport.py | 4 ++-- src/sgui/transport.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sgui/daw/transport.py b/src/sgui/daw/transport.py index ea838393..74362bdd 100644 --- a/src/sgui/daw/transport.py +++ b/src/sgui/daw/transport.py @@ -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() diff --git a/src/sgui/transport.py b/src/sgui/transport.py index aef54ffe..8f63d869 100644 --- a/src/sgui/transport.py +++ b/src/sgui/transport.py @@ -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