Add a configuration option for double embedding

Only plugin that needs this so far is PSPaudioware's E27 (and likely
other PSP plugins with expandable GUIs).
This commit is contained in:
Robbert van der Helm
2020-07-23 15:59:00 +02:00
parent 523f77d334
commit 967856fc1b
3 changed files with 24 additions and 0 deletions
+2
View File
@@ -49,6 +49,8 @@ Configuration::Configuration(const fs::path& config_path,
// If the table is missing some fields then they will simply be left at
// their defaults
if (toml::table* config = value.as_table()) {
editor_double_embed =
(*config)["editor_double_embed"].value<bool>().value_or(false);
group = (*config)["group"].value<std::string>();
}