Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2020-08-13 15:54:13 +0300
committertamasmeszaros <meszaros.q@gmail.com>2020-08-13 15:54:13 +0300
commit399c5a9c98b2f9b6dbf28bc90420d0de831b72a9 (patch)
tree71aa96b99411a94b027fa2b7f5b7b0ea9bb2fd5e /src/slic3r/GUI
parent1003c32f76f7badfe2e4dc130b6c126d34e97e16 (diff)
Show description for disabled elevation when pad or pad around is off
Follow-up fix for 830d89
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r--src/slic3r/GUI/Tab.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp
index 9970eb5b9..a56dadf4f 100644
--- a/src/slic3r/GUI/Tab.cpp
+++ b/src/slic3r/GUI/Tab.cpp
@@ -4055,7 +4055,8 @@ void TabSLAPrint::update()
m_config_manipulation.update_print_sla_config(m_config, true);
- m_support_object_elevation_description_line->SetText(!m_config->opt_bool("pad_around_object") ? "" :
+ bool elev = !m_config->opt_bool("pad_enable") || !m_config->opt_bool("pad_around_object");
+ m_support_object_elevation_description_line->SetText(elev ? "" :
from_u8((boost::format(_u8L("\"%1%\" is disabled because \"%2%\" is on in \"%3%\" category.\n"
"To enable \"%1%\", please switch off \"%2%\""))
% _L("Object elevation") % _L("Pad around object") % _L("Pad")).str()));