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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2020-02-04 16:42:26 +0300
committerEnrico Turri <enricoturri@seznam.cz>2020-02-04 16:42:26 +0300
commit3ec4b77dcdc210bcef2462a5d7f734abd74012d4 (patch)
treed670510f7f14c83866365015750410bf8f2e902d /src/slic3r/GUI/GLCanvas3D.cpp
parent9f536291b083f993c852da1b86e5a0fbffd2fdc8 (diff)
Added item menu 'Edit/Show labels' and removed labels activation from preferences dialog
Diffstat (limited to 'src/slic3r/GUI/GLCanvas3D.cpp')
-rw-r--r--src/slic3r/GUI/GLCanvas3D.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp
index 26ab4f435..449b7fbb8 100644
--- a/src/slic3r/GUI/GLCanvas3D.cpp
+++ b/src/slic3r/GUI/GLCanvas3D.cpp
@@ -1238,21 +1238,6 @@ void GLCanvas3D::LegendTexture::render(const GLCanvas3D& canvas) const
}
#if ENABLE_SHOW_SCENE_LABELS
-void GLCanvas3D::Labels::show(bool show)
-{
- bool shown = is_shown();
- if (shown != show)
- {
- wxGetApp().app_config->set("show_labels", show ? "1" : "0");
- wxGetApp().app_config->save();
- }
-}
-
-bool GLCanvas3D::Labels::is_shown() const
-{
- return wxGetApp().app_config->get("show_labels") == "1";
-}
-
void GLCanvas3D::Labels::render(const std::vector<const PrintInstance*>& sorted_instances) const
{
if (!m_enabled || !is_shown())