summaryrefslogtreecommitdiff
path: root/shortcuts
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 /shortcuts
parentb489e6dd87affe23fc55094b447b967ce1273de9 (diff)
Views: update animators durations on low_gfx setting changed
(bzr r4132.6.4)
Diffstat (limited to 'shortcuts')
-rw-r--r--shortcuts/ShortcutController.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/shortcuts/ShortcutController.cpp b/shortcuts/ShortcutController.cpp
index 82ee3b883..fb15ed595 100644
--- a/shortcuts/ShortcutController.cpp
+++ b/shortcuts/ShortcutController.cpp
@@ -58,6 +58,11 @@ Controller::Controller(BaseWindowRaiser::Ptr const& base_window_raiser,
if (animation::GetDirection(fade_animator_) == animation::Direction::BACKWARD)
view_window_->ShowWindow(false);
});
+
+ Settings::Instance().low_gfx.changed.connect(sigc::track_obj([this] (bool low_gfx) {
+ fade_animator_.SetDuration(low_gfx ? 0 : FADE_DURATION);
+ }, *this));
+
modeller_->model_changed.connect(sigc::mem_fun(this, &Controller::OnModelUpdated));
}