From b9e0cb355dc747ba6bf7047281c29fdd8e63f43c Mon Sep 17 00:00:00 2001 From: Derrick Date: Mon, 9 Mar 2026 18:01:44 +0800 Subject: [PATCH] Fix for notifications unable to be interacted after gcode viewer collapsed (#12689) JIRA-126 --- src/slic3r/GUI/NotificationManager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp index 35318412c8..abd5a12373 100644 --- a/src/slic3r/GUI/NotificationManager.cpp +++ b/src/slic3r/GUI/NotificationManager.cpp @@ -322,6 +322,13 @@ void NotificationManager::PopNotification::render(GLCanvas3D& canvas, float init render_minimize_button(imgui, win_pos.x, win_pos.y); render_close_button(imgui, win_size.x, win_size.y, win_pos.x, win_pos.y); // ORCA draw it after minimize button since its position related to minimize button } + + const bool gcode_window_visible = canvas.get_canvas_type() == GLCanvas3D::ECanvasType::CanvasPreview && wxGetApp().show_gcode_window(); + if (!gcode_window_visible) + { + ImGui::BringWindowToDisplayFront(ImGui::GetCurrentWindow()); + } + imgui.end(); restore_default_theme();