mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
Maps: Move TileProviders.json to user independent folder
This commit is contained in:
parent
5da9f52b1f
commit
29026ce965
3 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ ErrorOr<void> MapsSettingsWidget::initialize()
|
|||
tile_provider_fields.empend("url_format", "URL format"_string, Gfx::TextAlignment::CenterLeft);
|
||||
tile_provider_fields.empend("attribution_text", "Attribution text"_string, Gfx::TextAlignment::CenterLeft);
|
||||
tile_provider_fields.empend("attribution_url", "Attribution URL"_string, Gfx::TextAlignment::CenterLeft);
|
||||
auto tile_providers = GUI::JsonArrayModel::create(ByteString::formatted("{}/MapsTileProviders.json", Core::StandardPaths::config_directory()), move(tile_provider_fields));
|
||||
auto tile_providers = GUI::JsonArrayModel::create("/usr/share/Maps/TileProviders.json", move(tile_provider_fields));
|
||||
tile_providers->invalidate();
|
||||
|
||||
Vector<JsonValue> custom_tile_provider;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue