mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Fixed the osgearth cache only configuration
osgEarth enables it even if OSGEARTH_CACHE_ONLY is set to false it's necessary to unset it instead
This commit is contained in:
parent
6174fa2d7f
commit
28f028064a
@ -52,8 +52,10 @@ void PfdQmlGadget::loadConfiguration(IUAVGadgetConfiguration* config)
|
||||
if (m->cacheOnly()) {
|
||||
qputenv("OSGEARTH_CACHE_ONLY", "true");
|
||||
} else {
|
||||
//how portable it is?
|
||||
//unsetenv("OSGEARTH_CACHE_ONLY");
|
||||
qputenv("OSGEARTH_CACHE_ONLY", "false");
|
||||
#ifdef Q_OS_WIN32
|
||||
qputenv("OSGEARTH_CACHE_ONLY", "");
|
||||
#else
|
||||
unsetenv("OSGEARTH_CACHE_ONLY");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user