| 627 | } |
| 628 | |
| 629 | void MainWindow::OnUploadEditsMenuItem() |
| 630 | { |
| 631 | std::string token; |
| 632 | if (!settings::Get(kOauthTokenSetting, token) || token.empty()) |
| 633 | { |
| 634 | OnLoginMenuItem(); |
| 635 | } |
| 636 | else |
| 637 | { |
| 638 | auto & editor = osm::Editor::Instance(); |
| 639 | if (editor.HaveMapEditsOrNotesToUpload()) |
| 640 | editor.UploadChanges(token, {{"created_by", "CoMaps " OMIM_OS_NAME}}); |
| 641 | } |
| 642 | } |
| 643 | |
| 644 | void MainWindow::OnBeforeEngineCreation() |
| 645 | { |
nothing calls this directly
no test coverage detected