| 504 | } |
| 505 | |
| 506 | bool Framework::HasUnsavedEdits(storage::CountryId const & countryId) |
| 507 | { |
| 508 | bool hasUnsavedChanges = false; |
| 509 | auto const forEachInSubtree = [&hasUnsavedChanges, this](storage::CountryId const & fileName, bool groupNode) |
| 510 | { |
| 511 | if (groupNode) |
| 512 | return; |
| 513 | hasUnsavedChanges |= osm::Editor::Instance().HaveMapEditsToUpload( |
| 514 | m_featuresFetcher.GetDataSource().GetMwmIdByCountryFile(platform::CountryFile(fileName))); |
| 515 | }; |
| 516 | GetStorage().ForEachInSubtree(countryId, forEachInSubtree); |
| 517 | return hasUnsavedChanges; |
| 518 | } |
| 519 | |
| 520 | // Small copy-paste with LoadMapsAsync, but I don't have a better solution. |
| 521 | void Framework::LoadMapsSync() |
no test coverage detected