Commit 6f73ddc0 authored by Gus Grubba's avatar Gus Grubba

Convert API key and Client ID to functions instead of constants.

parent eb341a6e
......@@ -123,8 +123,8 @@ AirMapManager::_settingsChanged()
//-- If we have a hardwired key (and no custom key is present), set it.
#if defined(QGC_AIRMAP_KEY_AVAILABLE)
if(!ap->usePersonalApiKey()->rawValue().toBool()) {
settings.apiKey = kAirmapAPIKey;
settings.clientID = kAirmapClientID;
settings.apiKey = AirmapAPIKey();
settings.clientID = AirmapClientID();
}
bool authChanged = settings.apiKey != _shared.settings().apiKey || settings.apiKey.isEmpty();
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment