Skip to content

Commit

Permalink
Remove dependency on plugin 2/2
Browse files Browse the repository at this point in the history
ebaauw committed Jul 17, 2021
1 parent b3582e9 commit a47f6eb
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions group.cpp
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
*
*/

#include "de_web_plugin_private.h"
#include "event_emitter.h"
#include "group.h"
#include <QStringList>

@@ -131,7 +131,7 @@ bool Group::isColorLoopActive() const
*/
void Group::didSetValue(ResourceItem *i)
{
plugin->enqueueEvent(Event(RGroups, i->descriptor().suffix, id(), i));
enqueueEvent(Event(RGroups, i->descriptor().suffix, id(), i));
}

/*! multiDeviceIds to string. */
2 changes: 1 addition & 1 deletion light_node.cpp
Original file line number Diff line number Diff line change
@@ -267,7 +267,7 @@ uint8_t LightNode::colorLoopSpeed() const
*/
void LightNode::didSetValue(ResourceItem *i)
{
plugin->enqueueEvent(Event(RLights, i->descriptor().suffix, id(), i));
enqueueEvent(Event(RLights, i->descriptor().suffix, id(), i));
setNeedSaveDatabase(true);
}

2 changes: 1 addition & 1 deletion sensor.cpp
Original file line number Diff line number Diff line change
@@ -270,7 +270,7 @@ void Sensor::setModelId(const QString &mid)
*/
void Sensor::didSetValue(ResourceItem *i)
{
plugin->enqueueEvent(Event(RSensors, i->descriptor().suffix, id(), i));
enqueueEvent(Event(RSensors, i->descriptor().suffix, id(), i));
setNeedSaveDatabase(true);
}

0 comments on commit a47f6eb

Please sign in to comment.