Skip to content

Commit

Permalink
Differenciate UI message between step of failed (archive or upload).
Browse files Browse the repository at this point in the history
  • Loading branch information
herve-er committed Apr 19, 2024
1 parent 2efd031 commit 25aaad9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/gui/debuggingdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,14 @@ void DebuggingDialog::onLogUploadCompleted(bool success, const SyncPath &archive
_sendLogProgressBar->hide();
_sendLogButton->setEnabled(true);
} else {
_sendLogStatusLabel->setText(
tr("Failed to send logs to Infomaniak support. You can manually send the file available at %1")
.arg(QString::fromStdString(archivePath.string())));
if (!archivePath.empty()) {
_sendLogStatusLabel->setText(
tr("Failed to send logs to Infomaniak support. You can manually send the file available at %1")
.arg(QString::fromStdString(archivePath.string())));
} else {
_sendLogStatusLabel->setText(
tr("Failed to send logs to Infomaniak support."));
}
_sendLogProgressBar->hide();
_sendLogButton->setEnabled(true);
}
Expand Down

0 comments on commit 25aaad9

Please sign in to comment.