From 8e8c442d917cb1fe67a80ab4765e55fd3cf6bf9d Mon Sep 17 00:00:00 2001 From: deepin-admin-bot Date: Tue, 13 Oct 2026 23:17:13 +0800 Subject: [PATCH] fix: restore resetBottomToolbarGeometry call in showEvent to fix toolbar missing The resetBottomToolbarGeometry call in LibViewPanel::showEvent was commented out since the initial commit, causing the bottom toolbar width to not be recalculated when the window becomes visible. This resulted in prev/next buttons and thumbnails occasionally not showing when opening images. Git blame confirms the comment existed from the initial commit (1fa9bc5, unrelated printCount fix) and was not an intentional fix for any specific issue. Log: Restore resetBottomToolbarGeometry in showEvent to recalculate toolbar width on window show Bug: https://pms.uniontech.com/bug-view-376715.html --- libimageviewer/viewpanel/viewpanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimageviewer/viewpanel/viewpanel.cpp b/libimageviewer/viewpanel/viewpanel.cpp index 3de5aa35..ecf83860 100644 --- a/libimageviewer/viewpanel/viewpanel.cpp +++ b/libimageviewer/viewpanel/viewpanel.cpp @@ -2201,7 +2201,7 @@ void LibViewPanel::showEvent(QShowEvent *e) } //显示的时候需要判断一次滑动 noAnimationBottomMove(); -// resetBottomToolbarGeometry(m_stack->currentWidget() == m_view); + resetBottomToolbarGeometry(m_stack->currentWidget() == m_view); QFrame::showEvent(e); }