Skip to content

Commit

Permalink
Updated API for System Monitor
Browse files Browse the repository at this point in the history
* Updated API to launch system monitor
* Always enable dial animation

Change-Id: I309804188c84ba0f9f3b2843f0b5b27cc81eb23f
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
  • Loading branch information
Nedim Hadzic authored and Gagi2k committed Oct 12, 2016
1 parent da835a1 commit 9defbe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions imports/system/models/VehicleModel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion sysui/Cloud/Settings/SettingsScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ UIElement {
}
else if (titleText === "SYSTEM MONITOR") {
systemMonitorLoader.active = true
ApplicationManagerInterface.applicationSurfaceReady(systemMonitorLoader.item)
ApplicationManagerInterface.applicationSurfaceReady(systemMonitorLoader.item, false)
}
}
}
Expand Down

0 comments on commit 9defbe5

Please sign in to comment.