Ubuntu Pastebin

Paste from dandrader at Wed, 6 May 2015 12:37:17 +0000

Download as text
 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();
                        }
                    }
Download as text