support for drag and drop + open with using a dub json file

This commit is contained in:
Basile Burg 2015-09-09 13:52:56 +02:00
parent 63dedff146
commit 08243d3f9d
1 changed files with 3 additions and 3 deletions

View File

@ -664,12 +664,12 @@ begin
begin begin
if isEditable(ExtractFileExt(value)) then if isEditable(ExtractFileExt(value)) then
openFile(value) openFile(value)
else if isValidNativeProject(value) then else if isValidNativeProject(value) or isValidDubProject(value) then
begin begin
// so far CE can only open 1 project at a time // so far CE can only open 1 project at a time
openProj(value); openProj(value);
break; break;
end; end
end; end;
finally finally
lst.Free; lst.Free;
@ -1458,7 +1458,7 @@ var
begin begin
for fname in FileNames do for fname in FileNames do
begin begin
if isValidNativeProject(fname) then if isValidNativeProject(fname) or isValidDubProject(fname) then
begin begin
openProj(fname); openProj(fname);
break; break;