summaryrefslogtreecommitdiff
path: root/units/power-management
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2020-08-05 23:30:28 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2020-08-05 23:30:28 +0100
commitd527f39fae8167512d40adc9acc57224ce037863 (patch)
tree73cc57aaee8047d8325a0714fd8ac5a8b1d0c5fd /units/power-management
parentb241956a7c3e0a078d49d2d85d2224eca66ba31a (diff)
units/*: simplify requires fields
Improve performance of checkbox by reducing the complexity of requires fields.
Diffstat (limited to 'units/power-management')
-rw-r--r--units/power-management/jobs.pxu4
1 files changed, 3 insertions, 1 deletions
diff --git a/units/power-management/jobs.pxu b/units/power-management/jobs.pxu
index 58aae2a..5dfa56c 100644
--- a/units/power-management/jobs.pxu
+++ b/units/power-management/jobs.pxu
@@ -347,7 +347,9 @@ plugin: user-interact-verify
category_id: com.canonical.plainbox::power-management
id: power-management/light_sensor
estimated_duration: 10.0
-requires: dmi.product in ['Notebook','Laptop','Portable'] and executable.name == 'monitor-sensor'
+requires:
+ dmi.product in ['Notebook','Laptop','Portable']
+ executable.name == 'monitor-sensor'
flags: also-after-suspend-manual
command: light_sensor_test.sh
_description: