summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2016-07-14 10:06:00 +0000
committerBileto Bot <ci-train-bot@canonical.com>2016-07-14 10:06:00 +0000
commit76fb32099d44a49f1d23c8366bb7d3d5dd040f22 (patch)
tree2f8e40d3728d5d24acd64d19a21da4fc67b0beba
parent27f8ff6a91d4d839d4ef37fc95769ecbbcb42eec (diff)
parent0d3b06fd2a5db9d797c38ef6d16dd073de16fd19 (diff)
SwitcherView: always disable animations when in lowgfx mode (LP: #1602784)
(bzr r4150)
-rw-r--r--launcher/SwitcherView.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/launcher/SwitcherView.cpp b/launcher/SwitcherView.cpp
index d3aecf533..3dcf05cb7 100644
--- a/launcher/SwitcherView.cpp
+++ b/launcher/SwitcherView.cpp
@@ -215,6 +215,7 @@ void SwitcherView::OnScaleChanged(double scale)
void SwitcherView::StartAnimation()
{
+ animation_.SetDuration(Settings::Instance().low_gfx() ? 0 : animation_length);
animation::Start(animation_, animation::Direction::FORWARD);
}
@@ -249,7 +250,6 @@ void SwitcherView::OnDetailSelectionChanged(bool detail)
render_targets_.clear();
}
- animation_.SetDuration(Settings::Instance().low_gfx() ? 0 : animation_length);
SaveLast();
}
@@ -260,7 +260,6 @@ void SwitcherView::OnSelectionChanged(AbstractLauncherIcon::Ptr const& selection
delta_tracker_.ResetState();
- animation_.SetDuration(animation_length);
SaveLast();
}