Skip to content

Commit

Permalink
chore: add a switch to menu animation
Browse files Browse the repository at this point in the history
add a switch to menu animation

Log:
  • Loading branch information
FeiWang1119 committed Nov 14, 2024
1 parent 3fd431f commit 95bf4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion styleplugins/chameleon/chameleonstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3051,7 +3051,7 @@ ChameleonMovementAnimation *ChameleonStyle::drawMenuItemBackground(const QStyleO

ChameleonMovementAnimation *animation = nullptr;

if (animationTargetWidget) {
if (DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::HasAnimations) && animationTargetWidget) {
animation = animationTargetWidget->findChild<ChameleonMovementAnimation*>("_d_menu_select_animation",
Qt::FindDirectChildrenOnly);
if (!animation) {
Expand Down

0 comments on commit 95bf4d4

Please sign in to comment.