MCPcopy Create free account
hub / github.com/audacity/audacity / ValidateUI

Method ValidateUI

src/effects/Distortion.cpp:131–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131bool EffectDistortion::Editor::ValidateUI()
132{
133 {
134 // This section was copied from the original
135 // DistortionBase::TransferDataFromWindow
136 //
137 // However, the call to ->Validate would bring up an error dialog
138 // saying "Empty value"
139
140 if ( /*!mUIParent()->Validate() ||*/ !mUIParent->TransferDataFromWindow())
141 {
142 return false;
143 }
144 }
145
146
147 mAccess.ModifySettings
148 (
149 [this](EffectSettings& settings)
150 {
151 // pass back the modified settings to the MessageBuffer
152
153 GetSettings(settings) = mSettings;
154
155 return nullptr;
156 }
157 );
158
159 return true;
160}
161
162EffectDistortionState& EffectDistortion::Editor::GetState()
163{

Callers

nothing calls this directly

Calls 2

GetSettingsFunction · 0.85

Tested by

no test coverage detected