Don't enable charging on exit when running on emulator
This commit is contained in:
parent
ba3d17b611
commit
0aff894dd2
1 changed files with 2 additions and 1 deletions
|
@ -254,7 +254,8 @@ void Battery::shutdown() {
|
|||
lowNotifyTimer->stop();
|
||||
qDebug() << "Low battery notification stopped";
|
||||
}
|
||||
if(!setChargingEnabled(true)) {
|
||||
// ENABLE/DISABLE CHARGING
|
||||
if(!QHostInfo::localHostName().contains("SailfishEmul") && !setChargingEnabled(true)) {
|
||||
qWarning() << "ERROR! Could not restore charger status! Your device" << endl
|
||||
<< "may not start until reboot! If that doesn't help," << endl
|
||||
<< "uninstall Battery Buddy and reboot your device.";
|
||||
|
|
Loading…
Reference in a new issue