diff --git a/dpf b/dpf index 8480503..77ed926 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 8480503cd7c047fd20e7c047d5cad89b2cdf7b61 +Subproject commit 77ed9260b247c28233b7227173df97dfc088f5e4 diff --git a/plugins/States/ExamplePluginStates.cpp b/plugins/States/ExamplePluginStates.cpp index 4719b6e..2195e2c 100644 --- a/plugins/States/ExamplePluginStates.cpp +++ b/plugins/States/ExamplePluginStates.cpp @@ -94,10 +94,10 @@ protected: * State */ /** - Set the key name of the state @a index. + Set the state key and default value of @a index. This function will be called once, shortly after the plugin is created. */ - void d_initStateKey(uint32_t index, d_string& stateKey) override + void d_initState(uint32_t index, d_string& stateKey, d_string& defaultStateValue) override { switch (index) { @@ -129,6 +129,8 @@ protected: stateKey = "bottom-right"; break; } + + defaultStateValue = "false"; } /**