From b1a16c70cb2ff04286b1b2fd3a1d04032a83c01a Mon Sep 17 00:00:00 2001 From: bruce Date: Tue, 23 Sep 2014 18:56:39 +0900 Subject: [PATCH] Allow .SB2 and .SB0 files to be dragged into GUI. --- Source/PluginGui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/PluginGui.cpp b/Source/PluginGui.cpp index e66a5ab..ab1f904 100644 --- a/Source/PluginGui.cpp +++ b/Source/PluginGui.cpp @@ -1435,7 +1435,11 @@ void PluginGui::buttonClicked (Button* buttonThatWasClicked) bool PluginGui::isInterestedInFileDrag (const StringArray& files) { - return 1 == files.size() && files[0].toLowerCase().endsWith(".sbi"); + return 1 == files.size() && ( + files[0].toLowerCase().endsWith(".sbi") + || files[0].toLowerCase().endsWith(".sb2") + || files[0].toLowerCase().endsWith(".sb0") + ); } void PluginGui::fileDragEnter (const StringArray& files, int x, int y)