From 76aefd533cc76314344a3e41d09becdf49dec2e9 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 8 May 2019 17:43:43 +0200 Subject: [PATCH] In GUI mode, when exporting the G-code to a temp file, don't show "Exporting G-code", but "Generating G-code" --- src/libslic3r/Print.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index 72e3597d58..86dc373654 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -1514,13 +1514,15 @@ std::string Print::export_gcode(const std::string &path_template, GCodePreviewDa // output everything to a G-code file // The following call may die if the output_filename_format template substitution fails. std::string path = this->output_filepath(path_template); - std::string message = L("Exporting G-code"); + std::string message; // #ys_FIXME_localization if (! path.empty() && preview_data == nullptr) { // Only show the path if preview_data is not set -> running from command line. + message = L("Exporting G-code"); message += " to "; message += path; - } + } else + message = L("Generating G-code"); this->set_status(90, message); // The following line may die for multiple reasons.