1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-02 18:04:23 +01:00

Do not store pause state in ControlToolBar...

... Move that into ProjectAudioManager instead, and update the button, only to
reflect it, in idle time.

However, AudioIO also has its mPaused member variable, and it is not obvious
that it was always kept the same as the button state.  No attempt was made
here to identify and fix any bugs, but only to preserve behavior.
This commit is contained in:
Paul Licameli
2019-07-01 10:19:09 -04:00
parent 8b549ea07f
commit 923128731d
4 changed files with 27 additions and 33 deletions

View File

@@ -97,7 +97,6 @@ class ControlToolBar final : public ToolBar {
void SetStop(bool down);
void SetRecord(bool down, bool altAppearance = false);
bool IsPauseDown() const;
bool IsRecordDown() const;
// A project is only allowed to stop an audio stream that it owns.
@@ -183,9 +182,6 @@ class ControlToolBar final : public ToolBar {
static AudacityProject *mBusyProject;
// Maybe button state values shouldn't be duplicated in this toolbar?
bool mPaused; //Play or record is paused or not paused?
// Activate ergonomic order for transport buttons
bool mErgonomicTransportButtons;