mirror of https://github.com/buggins/dlangide.git
filter dragged files by file type - leave text files only
This commit is contained in:
parent
f60032cc4a
commit
b874f3e060
|
@ -617,10 +617,15 @@ class IDEFrame : AppFrame {
|
||||||
setBackgroundOperation(op);
|
setBackgroundOperation(op);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// handle files dropped to application window
|
||||||
void onFilesDropped(string[] filenames) {
|
void onFilesDropped(string[] filenames) {
|
||||||
//Log.d("onFilesDropped(", filenames, ")");
|
//Log.d("onFilesDropped(", filenames, ")");
|
||||||
|
bool first = true;
|
||||||
for (int i = 0; i < filenames.length; i++) {
|
for (int i = 0; i < filenames.length; i++) {
|
||||||
openSourceFile(filenames[i], null, i == 0);
|
if (isSupportedSourceTextFileFormat(filenames[i])) {
|
||||||
|
openSourceFile(filenames[i], null, first);
|
||||||
|
first = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue