dustinrue / ControlPlane

ControlPlane - context-sensitive computing for OS X
http://www.controlplaneapp.com
BSD 3-Clause "New" or "Revised" License
1.76k stars 181 forks source link

nested contexts do not match all element of the nested "branch" #491

Open bmoesdijk opened 7 years ago

bmoesdijk commented 7 years ago

In ControlPlane you can nest the contexts but it seems that there is no check for when higher contexts in a nested branch are met or not. e.g. I can have a main context called "PowerAdapter" and then 2 nested contexts within PowerAdapter called "PowerWork" & "PowerHome" Than under "PowerHome" I have 2 other nested contexts called "LidOpen & LidClosed. I want ControlPlane to only execute on the actions defined under "PowerAdapter/PowerHome/LidOpen" or /LidClosed when the full condition of this nested context structure is met, so when all contexts of the "tree branch" are true. Currently the actions are performed no matter what the higher layer context status (true/false) are. Is this intended or is this a bug?