mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-25 07:35:44 +01:00
Define and use ShuttleGui::Disable; remove EnableCtrl
This commit is contained in:
@@ -89,10 +89,12 @@ void MacroCommandDialog::PopulateOrExchange(ShuttleGui &S)
|
||||
S.SetStretchyCol(1);
|
||||
mCommand = S.AddTextBox(_("&Command"), wxT(""), 20);
|
||||
mCommand->SetEditable(false);
|
||||
mEditParams = S.Id(EditParamsButtonID).AddButton(_("&Edit Parameters"));
|
||||
mEditParams->Enable(false); // disable button as box is empty
|
||||
mUsePreset = S.Id(UsePresetButtonID).AddButton(_("&Use Preset"));
|
||||
mUsePreset->Enable(false); // disable button as box is empty
|
||||
mEditParams = S.Id(EditParamsButtonID)
|
||||
.Disable() // disable button as box is empty
|
||||
.AddButton(_("&Edit Parameters"));
|
||||
mUsePreset = S.Id(UsePresetButtonID)
|
||||
.Disable() // disable button as box is empty
|
||||
.AddButton(_("&Use Preset"));
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user