mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
Fix bug where Alert icon would not show
This commit is contained in:
parent
d319e1c70b
commit
10bbe560a4
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ alert::alert(QWidget *parent) :
|
|||
this->setStyleSheet(stylesheetFile.readAll());
|
||||
stylesheetFile.close();
|
||||
|
||||
// Default icon in case none of the conditions below are met
|
||||
QPixmap pixmap(":/resources/alert.png");
|
||||
QPixmap scaledPixmap = pixmap.scaled(stdIconWidth, stdIconHeight, Qt::KeepAspectRatio);
|
||||
ui->alertIconLabel->setPixmap(scaledPixmap);
|
||||
|
||||
// Checking if the update's signature is untrusted. The signature error will always take precedence over the downgrade one (c.f. update.sh script)
|
||||
if(checkconfig("/external_root/boot/flags/ALERT_SIGN") == true) {
|
||||
QPixmap pixmap(":/resources/alert.png");
|
||||
|
|
Loading…
Reference in a new issue