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
1 changed files with 5 additions and 1 deletions

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)