MCPcopy Create free account
hub / github.com/OneMoreGres/ScreenTranslator / correct

Method correct

src/settingsvalidator.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29bool SettingsValidator::correct(Settings &settings, const CommonModels &models)
30{
31 auto changed = false;
32
33 if (settings.doTranslation && settings.translators.isEmpty() &&
34 !models.translators().isEmpty()) {
35 settings.translators = models.translators();
36 changed = true;
37 }
38 return changed;
39}
40
41QString SettingsValidator::toString(Error error) const
42{

Callers 3

validateSettingsMethod · 0.45
updateSettingsMethod · 0.45
recognizedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected