| 114 | namespace |
| 115 | { |
| 116 | int PromptUser( |
| 117 | EffectNoiseReduction::Settings& settings, EffectNoiseReduction* effect, |
| 118 | EffectSettingsAccess& access, wxWindow& parent, bool bHasProfile, |
| 119 | bool bAllowTwiddleSettings) |
| 120 | { |
| 121 | EffectNoiseReduction::Dialog dlog( |
| 122 | effect, access, &settings, &parent, bHasProfile, bAllowTwiddleSettings); |
| 123 | |
| 124 | dlog.CentreOnParent(); |
| 125 | dlog.ShowModal(); |
| 126 | |
| 127 | const auto returnCode = dlog.GetReturnCode(); |
| 128 | if (!returnCode) |
| 129 | return 0; |
| 130 | |
| 131 | settings = dlog.GetTempSettings(); |
| 132 | settings.mDoProfile = (returnCode == 1); |
| 133 | |
| 134 | if (!settings.PrefsIO(false)) |
| 135 | return 0; |
| 136 | return returnCode; |
| 137 | } |
| 138 | } // namespace |
| 139 | |
| 140 | //! An override still here for historical reasons, ignoring the factory |
no test coverage detected