Small copy-paste with LoadMapsAsync, but I don't have a better solution.
| 519 | |
| 520 | // Small copy-paste with LoadMapsAsync, but I don't have a better solution. |
| 521 | void Framework::LoadMapsSync() |
| 522 | { |
| 523 | RegisterAllMaps(); |
| 524 | LOG(LDEBUG, ("Maps initialized")); |
| 525 | |
| 526 | GetSearchAPI().InitAfterWorldLoaded(); |
| 527 | LOG(LDEBUG, ("Search API initialized, part 2, after World was loaded")); |
| 528 | |
| 529 | osm::Editor & editor = osm::Editor::Instance(); |
| 530 | editor.LoadEdits(); |
| 531 | m_featuresFetcher.GetDataSource().AddObserver(editor); |
| 532 | LOG(LDEBUG, ("Editor initialized")); |
| 533 | |
| 534 | GetStorage().RestoreDownloadQueue(); |
| 535 | } |
| 536 | |
| 537 | // Small copy-paste with LoadMapsSync, but I don't have a better solution. |
| 538 | void Framework::LoadMapsAsync(std::function<void()> && callback) |
nothing calls this directly
no test coverage detected