1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-30 15:39:27 +02:00

Fix whitespace inconsistencies

Signed-off-by: abb128 <alexx128p@gmail.com>
This commit is contained in:
abb128 2021-07-15 21:06:12 +03:00
parent 02000a97d5
commit 298ccd94d3
3 changed files with 11 additions and 11 deletions

View File

@ -976,8 +976,8 @@ void AdornedRulerPanel::UpdatePrefs()
if ( mode != mEditMode )
{
mEditMode = mode;
ReCreateButtons();
mEditMode = mode;
ReCreateButtons();
}else if (mNeedButtonUpdate) {
// Visit this block once only in the lifetime of this panel
mNeedButtonUpdate = false;

View File

@ -64,9 +64,9 @@ BaseItemSharedPtr ToolbarsMenu()
Menu( wxT("Toolbars"), XXO("&Toolbars"),
Section( "Manage",
/* i18n-hint: (verb)*/
Command( wxT("EditMode"), XXO("&Edit Mode (on/off)"),
FN(OnEditMode), AudioIONotBusyFlag(),
Options{}.CheckTest( wxT("/GUI/Toolbars/EditMode"), true ) ),
Command( wxT("EditMode"), XXO("&Edit Mode (on/off)"),
FN(OnEditMode), AudioIONotBusyFlag(),
Options{}.CheckTest( wxT("/GUI/Toolbars/EditMode"), true ) ),
Command( wxT("ResetToolbars"), XXO("Reset Toolb&ars"),
FN(OnResetToolBars), AlwaysEnabledFlag )
),

View File

@ -542,11 +542,11 @@ void ToolBar::ReCreateButtons()
// Grabber is created only when editing, or when it's undocked
// (as otherwise the undocked toolbar can't be moved around)
if (mEditMode || !IsDocked())
{
{
// Create the grabber and add it to the main sizer
mGrabber = safenew Grabber(this, mType);
ms->Add(mGrabber, 0, wxEXPAND | wxALIGN_LEFT | wxALIGN_TOP | wxRIGHT, 1);
}
}
// Use a box sizer for laying out controls
ms->Add((mHSizer = safenew wxBoxSizer(wxHORIZONTAL)), 1, wxEXPAND);
@ -631,14 +631,14 @@ void ToolBar::UpdatePrefs()
if ( editing != mEditMode )
{
mEditMode = editing;
updated = true;
mEditMode = editing;
updated = true;
}
if ( updated )
{
ReCreateButtons();
Updated();
ReCreateButtons();
Updated();
}
return;