From 95bf4d4b3cf913aa4f830d853a109141b458a84a Mon Sep 17 00:00:00 2001 From: wangfei Date: Thu, 14 Nov 2024 11:03:45 +0800 Subject: [PATCH] chore: add a switch to menu animation add a switch to menu animation Log: --- styleplugins/chameleon/chameleonstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styleplugins/chameleon/chameleonstyle.cpp b/styleplugins/chameleon/chameleonstyle.cpp index bce2fce..22f21e5 100644 --- a/styleplugins/chameleon/chameleonstyle.cpp +++ b/styleplugins/chameleon/chameleonstyle.cpp @@ -3051,7 +3051,7 @@ ChameleonMovementAnimation *ChameleonStyle::drawMenuItemBackground(const QStyleO ChameleonMovementAnimation *animation = nullptr; - if (animationTargetWidget) { + if (DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::HasAnimations) && animationTargetWidget) { animation = animationTargetWidget->findChild("_d_menu_select_animation", Qt::FindDirectChildrenOnly); if (!animation) {