1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 07:40:23 +02:00

Fix failed assertion bug

Toggling edit mode while recording audio would cause a failed assertion error. Disabling the toggle while Audio IO is busy fixes this.

Signed-off-by: abb128 <alexx128p@gmail.com>
This commit is contained in:
abb128 2021-07-15 21:05:57 +03:00
parent 1ac8eeee94
commit 534da8b617

View File

@ -5,6 +5,7 @@
#include "../commands/CommandContext.h"
#include "../commands/CommandManager.h"
#include "../toolbars/ToolManager.h"
#include "../CommonCommandFlags.h"
/// Namespace for functions for View Toolbar menu
namespace ToolbarActions {
@ -64,7 +65,7 @@ BaseItemSharedPtr ToolbarsMenu()
Section( "Manage",
/* i18n-hint: (verb)*/
Command( wxT("EditMode"), XXO("&Edit Mode (on/off)"),
FN(OnEditMode), AlwaysEnabledFlag,
FN(OnEditMode), AudioIONotBusyFlag(),
Options{}.CheckTest( wxT("/GUI/Toolbars/EditMode"), false ) ),
Command( wxT("ResetToolbars"), XXO("Reset Toolb&ars"),
FN(OnResetToolBars), AlwaysEnabledFlag )