mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Merge pull request #2821 from Joern-R/BM-Import
Body & HRV Measures - MacOS
This commit is contained in:
@@ -304,6 +304,13 @@ BodyMeasuresDownload::download() {
|
||||
// do a refresh, it will check if needed
|
||||
context->athlete->rideCache->refresh();
|
||||
|
||||
#ifdef Q_MAC_OS
|
||||
// since progressBar on MacOS does not show the % values
|
||||
QMessageBox msgBox;
|
||||
msgBox.setText(tr("Download completed."));
|
||||
msgBox.exec();
|
||||
#endif
|
||||
|
||||
} else {
|
||||
// handle error document in err String
|
||||
QMessageBox::warning(this, tr("Body Measurements"), tr("Downloading of body measurements failed with error: %1").arg(err));
|
||||
|
||||
@@ -195,6 +195,13 @@ HrvMeasuresDownload::download() {
|
||||
|
||||
updateMeasures(context, hrvMeasures, discardExistingMeasures->isChecked());
|
||||
|
||||
#ifdef Q_MAC_OS
|
||||
// since progressBar on MacOS does not show the % values
|
||||
QMessageBox msgBox;
|
||||
msgBox.setText(tr("Download completed."));
|
||||
msgBox.exec();
|
||||
#endif
|
||||
|
||||
} else {
|
||||
// handle error document in err String
|
||||
QMessageBox::warning(this, tr("HRV Measurements"), tr("Downloading of HRV measurements failed with error: %1").arg(err));
|
||||
|
||||
Reference in New Issue
Block a user