2
0
Fork 0

Allow .SB2 and .SB0 files to be dragged into GUI.

This commit is contained in:
bruce 2014-09-23 18:56:39 +09:00
parent 0c5dac7025
commit b1a16c70cb

View file

@ -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)