summaryrefslogtreecommitdiff
path: root/shutdown
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-07-04 14:45:06 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-07-04 14:45:06 +0200
commit16a42a48be20e9f7423f38ae6ad79f1d71253ce7 (patch)
tree91eda9f3d1a7616df4a9b97641a99a9858e9d204 /shutdown
parentb489e6dd87affe23fc55094b447b967ce1273de9 (diff)
Views: update animators durations on low_gfx setting changed
(bzr r4132.6.4)
Diffstat (limited to 'shutdown')
-rw-r--r--shutdown/SessionController.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/shutdown/SessionController.cpp b/shutdown/SessionController.cpp
index 1603f5d57..381262ba6 100644
--- a/shutdown/SessionController.cpp
+++ b/shutdown/SessionController.cpp
@@ -62,6 +62,10 @@ Controller::Controller(session::Manager::Ptr const& manager)
if (animation::GetDirection(fade_animator_) == animation::Direction::BACKWARD)
CloseWindow();
});
+
+ Settings::Instance().low_gfx.changed.connect(sigc::track_obj([this] (bool low_gfx) {
+ fade_animator_.SetDuration(low_gfx ? 0 : FADE_DURATION);
+ }, *this));
}
void Controller::OnBackgroundUpdate(nux::Color const& new_color)