mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 07:37:21 -08:00
KT: Small fixes
This commit is contained in:
parent
5a716d2561
commit
01bded7aa4
2 changed files with 2 additions and 6 deletions
6
main.cpp
6
main.cpp
|
@ -76,11 +76,7 @@ int main(int argc, char *argv[])
|
||||||
// Checking if battery level is critical; if true (and if it is not charging), then display a "Please charge your eReader" splash and power off.
|
// Checking if battery level is critical; if true (and if it is not charging), then display a "Please charge your eReader" splash and power off.
|
||||||
if(global::deviceID != "emu\n") {
|
if(global::deviceID != "emu\n") {
|
||||||
if(isBatteryCritical() == true) {
|
if(isBatteryCritical() == true) {
|
||||||
string_checkconfig_ro("/sys/devices/platform/pmic_battery.1/power_supply/mc13892_bat/status");
|
if(!isUsbPluggedIn()) {
|
||||||
if(checkconfig_str_val == "Charging\n") {
|
|
||||||
;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
global::battery::showCriticalBatteryAlert = true;
|
global::battery::showCriticalBatteryAlert = true;
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
alert w;
|
alert w;
|
||||||
|
|
|
@ -1174,7 +1174,7 @@ void MainWindow::resetFullWindow() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::setRecentBooksLabelsTruncateThreshold() {
|
void MainWindow::setRecentBooksLabelsTruncateThreshold() {
|
||||||
if(global::deviceID == "n705\n" or global::deviceID == "n905b\n" or global::deviceID == "n905c\n" or global::deviceID == "kt\n") {
|
if(global::deviceID == "n705\n" or global::deviceID == "n905\n" or global::deviceID == "kt\n") {
|
||||||
truncateThreshold = 12;
|
truncateThreshold = 12;
|
||||||
}
|
}
|
||||||
else if(global::deviceID == "n613\n" or global::deviceID == "n873\n" or global::deviceID == "n236\n" or global::deviceID == "n437\n" or global::deviceID == "n306\n"){
|
else if(global::deviceID == "n613\n" or global::deviceID == "n873\n" or global::deviceID == "n236\n" or global::deviceID == "n437\n" or global::deviceID == "n306\n"){
|
||||||
|
|
Loading…
Reference in a new issue