~mzanetti/unity8/launcher_folded_quicklist

« back to all changes in this revision

Viewing changes to qml/Stages/PhoneStage.qml

  • Committer: CI Train Bot
  • Author(s): Michael Terry, Michał Sawicz
  • Date: 2015-12-08 15:36:23 UTC
  • mfrom: (2077.1.5 fix-wakelocks)
  • Revision ID: ci-train-bot@canonical.com-20151208153623-cqcksj1jnaiglcpn
Let qtmir know which apps are exempt from the lifecycle management.
This way, it can manage its own wakelocks better (and stop preventing the system from deep sleeping).

Show diffs side-by-side

added added

removed removed

Lines of Context:
426
426
 
427
427
                    readonly property bool isDash: model.appId == "unity8-dash"
428
428
 
429
 
                    readonly property bool canSuspend: model.isTouchApp
430
 
                            && !isExemptFromLifecycle(model.appId)
 
429
                    Binding {
 
430
                        target: appDelegate.application
 
431
                        property: "exemptFromLifecycle"
 
432
                        value: !model.isTouchApp || isExemptFromLifecycle(model.appId)
 
433
                    }
431
434
 
432
435
                    Binding {
433
436
                        target: appDelegate.application
434
437
                        property: "requestedState"
435
 
                        value: !canSuspend
436
 
                                   || (isDash && root.keepDashRunning)
 
438
                        value: (isDash && root.keepDashRunning)
437
439
                                   || (!root.suspended && appDelegate.focus)
438
440
                               ? ApplicationInfoInterface.RequestedRunning
439
441
                               : ApplicationInfoInterface.RequestedSuspended