MCPcopy Create free account
hub / github.com/comaps/comaps / SetCustomMapLanguageCode

Method SetCustomMapLanguageCode

libs/map/framework.cpp:2437–2445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2435}
2436
2437void Framework::SetCustomMapLanguageCode(std::optional<localisation::LanguageCode> const languageCode)
2438{
2439 if (languageCode.has_value())
2440 settings::Set(localisation::kMapLanguageSetting, languageCode.value());
2441 else
2442 settings::Delete(localisation::kMapLanguageSetting);
2443
2444 RefreshMapLanguage();
2445}
2446
2447void Framework::RefreshMapLanguage()
2448{

Callers 2

SetMapLanguageCodeMethod · 0.80
PreferencesDialogMethod · 0.80

Calls 4

DeleteFunction · 0.85
has_valueMethod · 0.80
SetFunction · 0.50
valueMethod · 0.45

Tested by

no test coverage detected