DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit b3c75c9a2a050057dbbe3f4bf085da19b1ba5e05
parent 854a9c76490b84141b1fe3f84f5cd6ceb6ac5885
Author: falkTX <falktx@falktx.com>
Date:   Fri, 11 Feb 2022 01:06:22 +0000

Clarify initial/default state

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/DistrhoPlugin.hpp | 3++-
Mexamples/FileHandling/FileHandlingPlugin.cpp | 1-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp @@ -688,7 +688,8 @@ struct State { String key; /** - The default value of this state. + The default value of this state.@n + Can be left empty if considered a valid initial state. */ String defaultValue; diff --git a/examples/FileHandling/FileHandlingPlugin.cpp b/examples/FileHandling/FileHandlingPlugin.cpp @@ -146,7 +146,6 @@ protected: } state.hints = kStateIsFilenamePath; - state.defaultValue = ""; } /* --------------------------------------------------------------------------------------------------------