delete error code

This commit is contained in:
何朴尧 2022-07-08 09:15:55 +00:00 committed by Gitee
parent 20d412d424
commit 5ab8cffabb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 0 additions and 4 deletions

View File

@ -62,10 +62,6 @@ powerwindow::powerwindow(QWidget *parent) : QWidget(parent)
});
qDebug()<<" notification init end";
// QDBusConnection::sessionBus().connect(
// QString(), "/", "org.ukui.upower", "LowBatteryState", this, SLOT(lowBatteryNotify()));
// QDBusConnection::sessionBus().connect(
// QString(), "/", "org.ukui.upower", "VeryLowBatteryState", this, SLOT(criticalBatteryNotify()));
qDebug()<<"upower init";
QDBusConnection::sessionBus().connect(
QString(), "/", "org.ukui.upower", "PowerState", this, SLOT(chargeNotify(bool)));