From cb68d4c60b54069e641ea905cb4ccc82c522ce3b Mon Sep 17 00:00:00 2001 From: "liz.li" Date: Tue, 11 Apr 2023 11:20:20 +0800 Subject: [PATCH] FIX: tooltip display problem Change-Id: I122f9b63a7e458838552c9d9cd0ee20d7bd7bfd5 --- src/slic3r/GUI/IMSlider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/IMSlider.cpp b/src/slic3r/GUI/IMSlider.cpp index c435ab866..f1e81e58c 100644 --- a/src/slic3r/GUI/IMSlider.cpp +++ b/src/slic3r/GUI/IMSlider.cpp @@ -1245,8 +1245,8 @@ void IMSlider::render_add_menu() if (menu_item_with_icon(_u8L("Add Custom Template").c_str(), "", ImVec2(0, 0), 0, false, menu_item_enable, &hovered)) { add_code_as_tick(Template); } + if (hovered) { show_tooltip(_u8L("Insert template custom G-code at the beginning of this layer.")); } } - if (hovered) { show_tooltip(_u8L("Insert template custom G-code at the beginning of this layer.")); } if (menu_item_with_icon(_u8L("Jump to Layer").c_str(), "")) { m_show_go_to_layer_dialog = true;