Describe the bug
When using the new Condition Activation Group function, the dialog where you're editing the conditions has a helpful feature where it shows the current values for whatever you have selected. This makes it easy to create conditions based on them.
However, I found if you switch to a different window/control/whatever, and the new window is missing one of the value types (e.g. 'Window Title' or 'Focused Element Role'), it retains the value of the previous selection (i.e. the thing that was focused before it.)
For instance, with the BTT editor window focused, you get this...
Current Bundle Identifier: com.hegenberg.BetterTouchTool • App Name: BetterTouchTool • Process Name: BetterTouchTool • Window Title: (null) • Focused Element Role: AXStaticText • Subrole: • Executable Path: /Applications/BetterTouchTool.app/Contents/MacOS/BetterTouchTool
If you then click a Java application, such as UMLet, you get this...
Current Bundle Identifier: net.java.openjdk.cmd • App Name: MainStandalone • Process Name: MainStandalone • Window Title: (null) • Focused Element Role: AXStaticText • Subrole: • Executable Path: /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java
Note 'Window Title' and 'Focused Element Role' are the same as for BTT.
If you then, say, click Safari, you get this...
Current Bundle Identifier: com.apple.Safari • App Name: Safari • Process Name: Safari • Window Title: SomeCoolSite • Focused Element Role: AXWebArea • Subrole: • Executable Path: /Applications/Safari.app/Contents/MacOS/Safari
If you click back on the UMLet Java app, you get this...
Current Bundle Identifier: net.java.openjdk.cmd • App Name: MainStandalone • Process Name: MainStandalone • Window Title: SomeCoolSite • Focused Element Role: AXWebArea • Subrole: • Executable Path: /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java
Note 'Window Title' and 'Focused Element Role' now are the same as for Safari.
Also, while I get why the Window Title for BTT is null, the Java app has one so I'm not sure why that isn't being picked up. Just something to look out for. (I was trying to specifically identify UMLet but there's nothing specific to that Java app I can grab. Window Title would've been perfect there.)
Something else... you show Window Title in that info box, but you don't have 'windowTitle' in the list of options. I'm guessing its the 'windowName' one? If so, you should consider updating the labels in the text area to match the actual values in the conditions editor (or vice-versa.)
Also, an enhancement would be if you could simply double-click one of those values and have them be added to the conditions automatically. Of course to do this, you would have to lock the current values as when you click back in BTT, you don't want them to change. A 'lock' button that doesn't steal focus when clicked right next to it would be good, as would a keyboard shortcut. You could also use a floating pallet which would give you more room for them and you could lay them out in a vertical, labeled list instead of a paragraph-like structure. Just makes it easier to search through, especially when the length of the values change.