mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
Cleanup for low/critical battery alert warnings
Check the previous commit for the main changes.
This commit is contained in:
parent
09e14b74cd
commit
99676137e4
2 changed files with 3 additions and 3 deletions
|
@ -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}");
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue