1
Fork 0
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:
Bastiaan van der Plaat 2024-02-28 20:56:24 +01:00 committed by Sam Atkins
parent 5da9f52b1f
commit 29026ce965
3 changed files with 2 additions and 2 deletions

View file

@ -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;