1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | property bool running: (isDash && root.keepDashRunning) || model.appId == priv.mainStageAppId || model.appId == priv.sideStageAppId onRunningChanged: { applyRunningState(); } Component.onCompleted: { applyRunningState(); } function applyRunningState() { var application = ApplicationManager.get(index) if (running) { application.resume(); } else { application.suspend(); } } |