Add an option to force drag-and-drop under REAPER

This works around a long standing bug in REAPER itself that would
prevent you from dragging files onto any plugin editor window.
This commit is contained in:
Robbert van der Helm
2021-01-19 14:46:41 +01:00
parent 53c0ecbac4
commit dac817323b
6 changed files with 89 additions and 18 deletions
+6
View File
@@ -90,6 +90,12 @@ Configuration::Configuration(const fs::path& config_path,
} else {
invalid_options.push_back(key);
}
} else if (key == "editor_force_dnd") {
if (const auto parsed_value = value.as_boolean()) {
editor_force_dnd = parsed_value->get();
} else {
invalid_options.push_back(key);
}
} else if (key == "editor_xembed") {
if (const auto parsed_value = value.as_boolean()) {
editor_xembed = parsed_value->get();