mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
LP-261 Get language from host for Map labels
This commit is contained in:
parent
4f5dd7117c
commit
641183b986
@ -37,16 +37,14 @@ OPMaps *OPMaps::Instance()
|
||||
}
|
||||
return m_pInstance;
|
||||
}
|
||||
|
||||
OPMaps::OPMaps() : RetryLoadTile(2), useMemoryCache(true)
|
||||
{
|
||||
accessmode = AccessMode::ServerAndCache;
|
||||
// Need to figure out why this is *fixed* to Portugese. This casues pt-PT to be sent with every Google request
|
||||
Language = LanguageType::PortuguesePortugal;
|
||||
LanguageStr = LanguageType().toShortString(Language);
|
||||
LanguageStr = QLocale().bcp47Name();
|
||||
Cache::Instance();
|
||||
}
|
||||
|
||||
|
||||
OPMaps::~OPMaps()
|
||||
{
|
||||
TileDBcacheQueue.wait();
|
||||
|
Loading…
x
Reference in New Issue
Block a user