effects/desktopgrid: Schedule repaint when toggled

A repaint needs to be scheduled; otherwise the animation may not start
immediately.
This commit is contained in:
Vlad Zahorodnii 2021-09-23 16:22:32 +03:00
parent f453cb83e2
commit 29d1b25ad5

View file

@ -701,6 +701,7 @@ void DesktopGridEffect::activate()
timeline.setDirection(QTimeLine::Forward);
timelineRunning = true;
// timeline.resume();
effects->addRepaintFull();
}
void DesktopGridEffect::deactivate()
@ -709,6 +710,7 @@ void DesktopGridEffect::deactivate()
timeline.setDirection(QTimeLine::Backward);
timelineRunning = true;
// timeline.resume();
effects->addRepaintFull();
}
void DesktopGridEffect::toggle()