summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel d'Andrada <daniel.dandrada@luxoft.com>2018-12-12 13:57:50 +0100
committerRobert Griebl <robert.griebl@pelagicore.com>2018-12-12 13:02:09 +0000
commitbf3c4c2c255446bb09e67ec39ad5b7f5365baca2 (patch)
treeceea145f9ff894e568154bfd21c1efd947bdf5df
parentb50ba65d0f08faf76a33bb6e58cef3bf52f73b06 (diff)
Fix propagation of --slow-animations to applications
Fixes a regression added by commit 5fad90789b756ad8d6ec88db3ef71d354d0c7323 ("Refactor the interface between the AM and runtime launchers"), finalizing the transition to use a single config object instead of multiple environment variables to carry information between System-UI and applications. Change-Id: I75838c39d2d454bc3245bfb600de3d43b8749f53 Fixes: AUTOSUITE-712 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
-rw-r--r--src/tools/launcher-qml/launcher-qml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/launcher-qml/launcher-qml.cpp b/src/tools/launcher-qml/launcher-qml.cpp
index 7fc88ac2..9efddb73 100644
--- a/src/tools/launcher-qml/launcher-qml.cpp
+++ b/src/tools/launcher-qml/launcher-qml.cpp
@@ -459,7 +459,7 @@ void Controller::startApplication(const QString &baseDir, const QString &qmlFile
connect(m_applicationInterface, &ApplicationInterface::slowAnimationsChanged,
this, &Controller::updateSlowMode);
- if (qEnvironmentVariableIsSet("AM_SLOW_ANIMATIONS"))
+ if (LauncherMain::instance()->slowAnimations())
updateSlowMode(true);
}