Created
August 1, 2025 00:38
-
-
Save MrPowerGamerBR/7f3e08261be51015ca72f2a6fc4a82e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From ccacdcea3dd5724d1121509f7a02e1e999870b2d Mon Sep 17 00:00:00 2001 | |
| From: MrPowerGamerBR <[email protected]> | |
| Date: Thu, 31 Jul 2025 21:37:20 -0300 | |
| Subject: [PATCH] Disable animations in the information panel | |
| --- | |
| src/panels/information/pixmapviewer.cpp | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| diff --git a/src/panels/information/pixmapviewer.cpp b/src/panels/information/pixmapviewer.cpp | |
| index b18c9e64e..d0f1a7b90 100644 | |
| --- a/src/panels/information/pixmapviewer.cpp | |
| +++ b/src/panels/information/pixmapviewer.cpp | |
| @@ -117,7 +117,7 @@ void PixmapViewer::paintEvent(QPaintEvent *event) | |
| QPainter painter(this); | |
| - if (m_transition != NoTransition || (m_hasAnimatedImage && m_animatedImage->state() != QMovie::Running)) { | |
| + if (false /* disable image switch animation */ && (m_transition != NoTransition || (m_hasAnimatedImage && m_animatedImage->state() != QMovie::Running))) { | |
| const float value = m_animation.currentValue(); | |
| const int scaledWidth = static_cast<int>((m_oldPixmap.width() * (1.0 - value)) + (m_pixmap.width() * value)); | |
| const int scaledHeight = static_cast<int>((m_oldPixmap.height() * (1.0 - value)) + (m_pixmap.height() * value)); | |
| -- | |
| 2.50.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment