effects/desktopgrid: Schedule repaint when toggled
A repaint needs to be scheduled; otherwise the animation may not start immediately.
This commit is contained in:
parent
f453cb83e2
commit
29d1b25ad5
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue