Tech ENABLE_GCODE_DRAG_AND_DROP_GCODE_FILES set as default

This commit is contained in:
enricoturri1966 2020-10-12 13:09:04 +02:00
parent f04d9c1806
commit 5356b72a86
3 changed files with 2 additions and 5 deletions

View file

@ -154,7 +154,6 @@ int CLI::run(int argc, char **argv)
// Read input file(s) if any.
#if ENABLE_GCODE_VIEWER
#if ENABLE_GCODE_DRAG_AND_DROP_GCODE_FILES
for (const std::string& file : m_input_files) {
std::string ext = boost::filesystem::path(file).extension().string();
if (boost::filesystem::path(file).extension().string() == ".gcode") {
@ -164,7 +163,6 @@ int CLI::run(int argc, char **argv)
}
}
}
#endif // ENABLE_GCODE_DRAG_AND_DROP_GCODE_FILES
if (!start_as_gcodeviewer) {
#endif // ENABLE_GCODE_VIEWER
for (const std::string& file : m_input_files) {