Finalized the Prusa Control project file format import.

This commit is contained in:
bubnikv 2017-04-05 14:45:43 +02:00
parent f9023c0603
commit 7ffb3590c4
7 changed files with 62 additions and 31 deletions

View file

@ -2113,7 +2113,7 @@ sub OnDropFiles {
@_ = ();
# only accept STL, OBJ and AMF files
return 0 if grep !/\.(?:stl|obj|amf(?:\.xml)?|prus)$/i, @$filenames;
return 0 if grep !/\.(?:stl|obj|amf(?:\.xml)?|prusa)$/i, @$filenames;
$self->{window}->load_file($_) for @$filenames;
}