[feat] use a list to show thumbnails of recent connections

This commit is contained in:
dijunkun
2024-11-07 16:58:25 +08:00
parent 963f1da1d8
commit de721ac6e3
6 changed files with 24 additions and 16 deletions

View File

@@ -75,8 +75,11 @@ int Render::MainWindow() {
}
int Render::ShowRecentConnections() {
ImGui::Image((ImTextureID)(intptr_t)recent_connection_texture_,
ImVec2((float)recent_connection_image_width_,
(float)recent_connection_image_height_));
for (int i = 0; i < recent_connection_textures_.size(); i++) {
ImGui::Image((ImTextureID)(intptr_t)recent_connection_textures_[i],
ImVec2((float)recent_connection_image_width_,
(float)recent_connection_image_height_));
ImGui::SameLine();
}
return 0;
}