mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-01 23:05:14 +08:00
Fixed tooltip reappering after leaving imgui dialog
This commit is contained in:
parent
5b3ca3e4b7
commit
cd5154b8e1
@ -3350,8 +3350,7 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
|||||||
#endif /* SLIC3R_DEBUG_MOUSE_EVENTS */
|
#endif /* SLIC3R_DEBUG_MOUSE_EVENTS */
|
||||||
// do not return if dragging or tooltip not empty to allow for tooltip update
|
// do not return if dragging or tooltip not empty to allow for tooltip update
|
||||||
#if ENABLE_CANVAS_TOOLTIP_USING_IMGUI
|
#if ENABLE_CANVAS_TOOLTIP_USING_IMGUI
|
||||||
// Replaced with the m_tooltip.is_in_imgui() flag.
|
if (!m_mouse.dragging && m_tooltip.is_empty())
|
||||||
// if (!m_mouse.dragging && had_tooltip && m_tooltip.is_empty())
|
|
||||||
#else
|
#else
|
||||||
if (!m_mouse.dragging && m_canvas->GetToolTipText().empty())
|
if (!m_mouse.dragging && m_canvas->GetToolTipText().empty())
|
||||||
#endif // ENABLE_CANVAS_TOOLTIP_USING_IMGUI
|
#endif // ENABLE_CANVAS_TOOLTIP_USING_IMGUI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user