SPE-1954: Fixed 3MF file containing post-processing script cannot be open as 'Start new PrusaSlicer instance'

This commit is contained in:
enricoturri1966 2023-10-17 10:05:03 +02:00 committed by Lukas Matena
parent 3f3a3dd190
commit d0dc6b99b6

View File

@ -276,17 +276,19 @@ int CLI::run(int argc, char **argv)
}
}
const auto* post_process = m_print_config.opt<ConfigOptionStrings>("post_process");
if (post_process != nullptr && !post_process->values.empty()) {
boost::nowide::cout << "\nA post-processing script has been detected in the config data:\n\n";
for (const auto& s : post_process->values) {
boost::nowide::cout << "> " << s << "\n";
if (!start_gui) {
const auto* post_process = m_print_config.opt<ConfigOptionStrings>("post_process");
if (post_process != nullptr && !post_process->values.empty()) {
boost::nowide::cout << "\nA post-processing script has been detected in the config data:\n\n";
for (const auto& s : post_process->values) {
boost::nowide::cout << "> " << s << "\n";
}
boost::nowide::cout << "\nContinue(Y/N) ? ";
char in;
boost::nowide::cin >> in;
if (in != 'Y' && in != 'y')
return 0;
}
boost::nowide::cout << "\nContinue(Y/N) ? ";
char in;
boost::nowide::cin >> in;
if (in != 'Y' && in != 'y')
return 0;
}
// Apply command line options to a more specific DynamicPrintConfig which provides normalize()