From d0def61ca08f1eb56c34b660b8e0df2e41255d04 Mon Sep 17 00:00:00 2001 From: "qing.zhang" Date: Tue, 1 Nov 2022 14:10:19 +0800 Subject: [PATCH] ENH: fix the warning msg of nozzle hrc check Signed-off-by: qing.zhang Change-Id: I0cb6d10e002b3053624a970ecca12801576d8250 --- src/libslic3r/GCode/GCodeProcessor.hpp | 2 +- src/slic3r/GUI/Plater.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/GCode/GCodeProcessor.hpp b/src/libslic3r/GCode/GCodeProcessor.hpp index e0fc12f4c..60744afa1 100644 --- a/src/libslic3r/GCode/GCodeProcessor.hpp +++ b/src/libslic3r/GCode/GCodeProcessor.hpp @@ -17,7 +17,7 @@ namespace Slic3r { // slice warnings enum strings -#define THE_ACTUAL_NOZZLE_HRC_SMALLER_THAN_THE_REQUAIRED_NOZZLE_HRC "the_actual_nozzle_hrc_smaller_than_the_required_nozzle_hrc" +#define NOZZLE_HRC_CHECKER "the_actual_nozzle_hrc_smaller_than_the_required_nozzle_hrc" #define BED_TEMP_TOO_HIGH_THAN_FILAMENT "bed_temperature_too_high_than_filament" enum class EMoveType : unsigned char diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 6b645c7fa..718c03b79 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -2577,7 +2577,7 @@ wxString Plater::get_slice_warning_string(GCodeProcessorResult::SliceWarning& wa { if (warning.msg == BED_TEMP_TOO_HIGH_THAN_FILAMENT) { return _L("The bed temperature exceeds filament's vitrification temperature. Please open the front door of printer before printing to avoid nozzle clog."); - } else if (warning.msg == THE_ACTUAL_NOZZLE_HRC_SMALLER_THAN_THE_REQUAIRED_NOZZLE_HRC) { + } else if (warning.msg == NOZZLE_HRC_CHECKER) { return _L("The nozzle hardness required by the filament is higher than the default nozzle hardness of the printer. Please replace the hardened nozzle or filament, otherwise, the nozzle will be attrited or damaged."); } else { return wxString(warning.msg);