Allow .SB2 and .SB0 files to be dragged into GUI.
This commit is contained in:
parent
0c5dac7025
commit
b1a16c70cb
1 changed files with 5 additions and 1 deletions
|
@ -1435,7 +1435,11 @@ void PluginGui::buttonClicked (Button* buttonThatWasClicked)
|
||||||
|
|
||||||
bool PluginGui::isInterestedInFileDrag (const StringArray& files)
|
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)
|
void PluginGui::fileDragEnter (const StringArray& files, int x, int y)
|
||||||
|
|
Loading…
Reference in a new issue