mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-05 23:19:06 +02:00
Bug 2039 - Macros: Reload parameter not remembered.
This arose from the conversion from optional parameters to required parameters. The same problem was found in Screenshot command and in open/save command.
This commit is contained in:
parent
5a0980d178
commit
465148cb3e
@ -63,8 +63,8 @@ bool OpenProjectCommand::Apply(const CommandContext & context){
|
||||
|
||||
bool SaveProjectCommand::DefineParams( ShuttleParams & S ){
|
||||
S.Define( mFileName, wxT("Filename"), "name.aup" );
|
||||
S.OptionalN(bHasAddToHistory).Define( mbAddToHistory, wxT("AddToHistory"), false );
|
||||
S.OptionalN(bHasCompress).Define( mbCompress, wxT("Compress"), false );
|
||||
S.Define( mbAddToHistory, wxT("AddToHistory"), false );
|
||||
S.Define( mbCompress, wxT("Compress"), false );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ bool GetPreferenceCommand::Apply(const CommandContext & context)
|
||||
bool SetPreferenceCommand::DefineParams( ShuttleParams & S ){
|
||||
S.Define( mName, wxT("Name"), wxT("") );
|
||||
S.Define( mValue, wxT("Value"), wxT("") );
|
||||
S.OptionalN(bHasReload).Define( mbReload, wxT("Reload"), false );
|
||||
S.Define( mbReload, wxT("Reload"), false );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -98,8 +98,8 @@ kBackgroundStrings[ ScreenshotCommand::nBackgrounds ] =
|
||||
bool ScreenshotCommand::DefineParams( ShuttleParams & S ){
|
||||
S.Define( mPath, wxT("Path"), wxT(""));
|
||||
S.DefineEnum( mWhat, wxT("CaptureWhat"), kwindow,kCaptureWhatStrings, nCaptureWhats );
|
||||
S.OptionalN(bHasBackground).DefineEnum( mBack, wxT("Background"), kNone, kBackgroundStrings, nBackgrounds );
|
||||
S.OptionalN(bHasBringToTop).Define( mbBringToTop, wxT("ToTop"), true );
|
||||
S.DefineEnum( mBack, wxT("Background"), kNone, kBackgroundStrings, nBackgrounds );
|
||||
S.Define( mbBringToTop, wxT("ToTop"), true );
|
||||
return true;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user