aboutsummaryrefslogtreecommitdiffstats
path: root/imports
diff options
context:
space:
mode:
Diffstat (limited to 'imports')
-rw-r--r--imports/system/models/VehicleModel.qml8
1 files changed, 3 insertions, 5 deletions
diff --git a/imports/system/models/VehicleModel.qml b/imports/system/models/VehicleModel.qml
index 4e46252..9010d2d 100644
--- a/imports/system/models/VehicleModel.qml
+++ b/imports/system/models/VehicleModel.qml
@@ -37,7 +37,7 @@ import QtApplicationManager 1.0
QtObject {
id: root
- property bool dialAnimation: navigationControl.navigationRunning
+ property bool dialAnimation: true
property real speed: navigationControl.navigationRunning ? navigationControl.navigationSpeed : 0
@@ -91,10 +91,8 @@ QtObject {
interval: 4000
property bool higherValue: false
onTriggered: {
- if (navigationControl.navigationRunning)
- root.speed = higherValue ? (navigationControl.navigationSpeed - 5) : (navigationControl.navigationSpeed +5)
- else
- root.speed = higherValue ? (0) : (120)
+ root.speed = higherValue ? (navigationControl.navigationSpeed) : (navigationControl.navigationSpeed +5)
+
higherValue = !higherValue
}
}