Cleanup for low/critical battery alert warnings

Check the previous commit for the main changes.
This commit is contained in:
Nicolas Mailloux 2021-04-23 08:49:17 -04:00
parent 09e14b74cd
commit 99676137e4
2 changed files with 3 additions and 3 deletions

View file

@ -60,7 +60,7 @@ alert::alert(QWidget *parent) :
ui->warningLabel->setText("Please charge your eReader.");
ui->securityLabel->setText("The battery's charge level is critical.");
ui->messageLabel->setText("To prevent filesystem damage, your device has been turned off.\nPlease consider charging it.");
//poweroff(false);
poweroff(false);
}
ui->warningLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 16pt}");

View file

@ -548,13 +548,13 @@ void MainWindow::on_pushButton_clicked()
void MainWindow::on_searchBtn_clicked()
{
global::battery::showCriticalBatteryAlert = true;
/*global::battery::showCriticalBatteryAlert = true;
global::battery::showLowBatteryDialog = false;
alertWindow = new alert();
alertWindow->setAttribute(Qt::WA_DeleteOnClose);
alertWindow->setGeometry(QRect(QPoint(0,0), screen()->geometry ().size()));
alertWindow->show();
alertWindow->show();*/
}
void MainWindow::on_quitBtn_clicked()