From 5f1c4f7803aaf9f12cc5745688a818760284f052 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Wed, 8 Nov 2023 10:48:17 +0800 Subject: [PATCH] FIX: print model from sdcard with p1p Change-Id: If85383ba762022ead3dd754ae02a08817b891114 Jira: none --- src/slic3r/GUI/ImageGrid.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/ImageGrid.cpp b/src/slic3r/GUI/ImageGrid.cpp index 9aae4fac3a..56252b1cc3 100644 --- a/src/slic3r/GUI/ImageGrid.cpp +++ b/src/slic3r/GUI/ImageGrid.cpp @@ -272,10 +272,13 @@ std::pair Slic3r::GUI::ImageGrid::HitTest(wxPoint const &pt) auto & file = m_file_sys->GetFile(index); int btn = file.IsDownload() && file.DownloadProgress() >= 0 ? 3 : 2; if (m_file_sys->GetFileType() == PrinterFileSystem::F_MODEL) { - btn = 3; + if (m_show_download) + btn = 3; hover_rect.y -= m_content_rect.GetHeight() * 64 / 264; } - if (hover_rect.Contains(off.x, off.y)) { return {HIT_ACTION, index * 4 + off.x * btn / hover_rect.GetWidth()}; } // Two buttons + if (hover_rect.Contains(off.x, off.y)) { + return {HIT_ACTION, index * 4 + off.x * btn / hover_rect.GetWidth()}; + } // Two buttons } return {HIT_ITEM, index}; }