diff --git a/src/ScreensaverPlugin.hpp b/src/ScreensaverPlugin.hpp index a414309..148c960 100644 --- a/src/ScreensaverPlugin.hpp +++ b/src/ScreensaverPlugin.hpp @@ -24,6 +24,7 @@ class ScreensaverPlugin { virtual void render() = 0; // draw next frame void config(const nlohmann::json& data) { _j = data; } + void config(nlohmann::json&& data) { _j = data; } const nlohmann::json& config() const { return _j; } protected: