From b3c75c9a2a050057dbbe3f4bf085da19b1ba5e05 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 11 Feb 2022 01:06:49 +0000 Subject: [PATCH] Clarify initial/default state Signed-off-by: falkTX --- distrho/DistrhoPlugin.hpp | 3 ++- examples/FileHandling/FileHandlingPlugin.cpp | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp index ef7c228f..98912de6 100644 --- 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 index 196bc13f..691a4557 100644 --- a/examples/FileHandling/FileHandlingPlugin.cpp +++ b/examples/FileHandling/FileHandlingPlugin.cpp @@ -146,7 +146,6 @@ protected: } state.hints = kStateIsFilenamePath; - state.defaultValue = ""; } /* --------------------------------------------------------------------------------------------------------