Skip to content

Commit 71c2893

Browse files
authored
Update qt-updater.cpp
Made messaging clearer in the event of updating an unsigned AppImage in response to issue: #173
1 parent a211784 commit 71c2893

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/qt-ui/qt-updater.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,14 @@ namespace appimage {
246246
if (validationResult == d->updater->VALIDATION_NOT_SIGNED) {
247247
// copy permissions of the old AppImage to the new version
248248
d->updater->copyPermissionsToNewFile();
249+
d->label->setText("Update Completed with warning: " + validationMessage);
250+
palette.setColor(QPalette::Highlight, Qt::gray);
251+
palette.setColor(QPalette::HighlightedText, Qt::black);
252+
} else {
253+
d->label->setText("Signature validation problem: " + validationMessage);
254+
palette.setColor(QPalette::Highlight, Qt::yellow);
255+
palette.setColor(QPalette::HighlightedText, Qt::black);
249256
}
250-
251-
d->label->setText("Signature validation problem: " + validationMessage);
252-
palette.setColor(QPalette::Highlight, Qt::yellow);
253-
palette.setColor(QPalette::HighlightedText, Qt::black);
254257
} else {
255258
d->updater->restoreOriginalFile();
256259
const QString message = "Signature validation error: " + validationMessage;

0 commit comments

Comments
 (0)