mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:30:06 +00:00
Add mapbox_api_key to settings
This commit is contained in:
parent
ba64627f5d
commit
a96e017917
7 changed files with 47 additions and 11 deletions
|
|
@ -57,7 +57,11 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
std::string mapboxApiKey =
|
||||
manager::SettingsManager::general_settings()->mapbox_api_key();
|
||||
|
||||
settings_.resetToTemplate(QMapboxGLSettings::MapboxSettings);
|
||||
settings_.setApiKey(QString {mapboxApiKey.c_str()});
|
||||
settings_.setCacheDatabasePath(QString {cacheDbPath.c_str()});
|
||||
settings_.setCacheDatabaseMaximumSize(20 * 1024 * 1024);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue