@@ -113,23 +113,23 @@ void LibraryPrefs::PopulateOrExchange(ShuttleGui & S)
113
113
S.AddVariableText (_ (" LAME MP3 Library:" ),
114
114
true ,
115
115
wxALL | wxALIGN_RIGHT | wxALIGN_CENTRE_VERTICAL);
116
- wxButton *locate_button = S.Id (ID_MP3_FIND_BUTTON).AddButton (_ (" &Locate..." ),
117
- wxALL | wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
116
+ S.Id (ID_MP3_FIND_BUTTON)
117
+ #ifdef DISABLE_DYNAMIC_LOADING_LAME
118
+ .Disable ()
119
+ #endif
120
+ .AddButton (_ (" &Locate..." ),
121
+ wxALL | wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
118
122
S.AddVariableText (_ (" LAME MP3 Library:" ),
119
123
true ,
120
124
wxALL | wxALIGN_RIGHT | wxALIGN_CENTRE_VERTICAL);
121
- wxButton *download_button = S.Id (ID_MP3_DOWN_BUTTON).AddButton (_ (" &Download" ),
122
- wxALL | wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
123
-
125
+ S.Id (ID_MP3_DOWN_BUTTON)
124
126
#ifdef DISABLE_DYNAMIC_LOADING_LAME
125
- locate_button->Enable (FALSE );
126
- download_button->Enable (FALSE );
127
- #else
128
- (void )locate_button;
129
- (void )download_button;
130
- #endif // DISABLE_DYNAMIC_LOADING_LAME
127
+ .Disable ()
131
128
#endif
129
+ .AddButton (_ (" &Download" ),
130
+ wxALL | wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
132
131
132
+ #endif
133
133
}
134
134
S.EndTwoColumn ();
135
135
}
@@ -155,31 +155,32 @@ void LibraryPrefs::PopulateOrExchange(ShuttleGui & S)
155
155
true ,
156
156
wxALL | wxALIGN_RIGHT | wxALIGN_CENTRE_VERTICAL);
157
157
S.Id (ID_FFMPEG_FIND_BUTTON);
158
- wxButton *bfnd = S.AddButton (_ (" Loca&te..." ),
159
- wxALL | wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
158
+ S
159
+ #if !defined(USE_FFMPEG) || defined(DISABLE_DYNAMIC_LOADING_FFMPEG)
160
+ .Disable ()
161
+ #endif
162
+ .AddButton (_ (" Loca&te..." ),
163
+ wxALL | wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
160
164
S.AddVariableText (_ (" FFmpeg Library:" ),
161
165
true ,
162
166
wxALL | wxALIGN_RIGHT | wxALIGN_CENTRE_VERTICAL);
163
167
S.Id (ID_FFMPEG_DOWN_BUTTON);
164
- wxButton *bdwn = S.AddButton (_ (" Dow&nload" ),
165
- wxALL | wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
168
+ S
166
169
#if !defined(USE_FFMPEG) || defined(DISABLE_DYNAMIC_LOADING_FFMPEG)
167
- bdwn->Enable (FALSE );
168
- bfnd->Enable (FALSE );
169
- #else
170
- // fix compilation warnings about unused variables
171
- wxUnusedVar (bfnd);
172
- wxUnusedVar (bdwn);
170
+ .Disable ()
173
171
#endif
172
+ .AddButton (_ (" Dow&nload" ),
173
+ wxALL | wxALIGN_LEFT | wxALIGN_CENTRE_VERTICAL);
174
174
}
175
175
S.EndTwoColumn ();
176
176
#ifdef EXPERIMENTAL_OD_FFMPEG
177
- wxCheckBox* checkbox = S.TieCheckBox (_ (" Allow &background on-demand loading" ),
178
- wxT (" /Library/FFmpegOnDemand" ),
179
- false );
177
+ S
180
178
#if !defined(USE_FFMPEG)
181
- if ( checkbox ) checkbox-> Enable ( FALSE );
179
+ . Disable ()
182
180
#endif
181
+ .TieCheckBox (_ (" Allow &background on-demand loading" ),
182
+ wxT (" /Library/FFmpegOnDemand" ),
183
+ false );
183
184
#endif
184
185
}
185
186
S.EndStatic ();
0 commit comments