Fix legacy builds
This commit is contained in:
parent
a7d83df085
commit
74717738d8
3 changed files with 5 additions and 3 deletions
|
@ -76,7 +76,6 @@ private:
|
|||
QString state = "idle"; // dis/charging, idle, unknown
|
||||
bool chargingEnabled = true; // Only ever disabled manually
|
||||
|
||||
|
||||
QString health = "unknown"; // Good, warm, overheat. Might have Cold or Overvoltage depending on driver
|
||||
int temperature = 0x7FFFFFFF; // This value means "unknown" (32-bit INT_MAX)
|
||||
|
||||
|
|
|
@ -26,7 +26,11 @@
|
|||
#include <QHostInfo>
|
||||
#include <QLocale>
|
||||
#include "settings.h"
|
||||
#if LEGACY_BUILD == 1
|
||||
#include "mynotification_sfos2.h"
|
||||
#else
|
||||
#include "mynotification.h"
|
||||
#endif
|
||||
#include "logger.h"
|
||||
|
||||
class Battery : public QObject
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*
|
||||
* Author: Matti Viljanen
|
||||
*/
|
||||
#include "mynotification.h"
|
||||
#include "mynotification_sfos2.h"
|
||||
|
||||
MyNotification::MyNotification(Logger *newLogger, QObject* parent) : QObject(parent)
|
||||
{
|
||||
|
@ -57,7 +57,6 @@ void MyNotification::send(QString title, QString body, QString soundFile)
|
|||
notification.setBody(body);
|
||||
notification.setPreviewSummary(title);
|
||||
notification.setPreviewBody(body);
|
||||
// notification.setSound(soundFile);
|
||||
notification.setUrgency(Notification::Normal);
|
||||
notification.publish();
|
||||
|
||||
|
|
Loading…
Reference in a new issue