Fix for notifications unable to be interacted after gcode viewer collapsed (#12689)

JIRA-126
This commit is contained in:
Derrick
2026-03-09 18:01:44 +08:00
committed by GitHub
parent 48b85b37d4
commit b9e0cb355d

View File

@@ -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();