}
protected Engine.Deck getTargetDeck() {
- if (targetDeck != null) {
- return targetDeck;
- }
- return midiEngine.getFocusedDeck();
+ return (targetDeck != null) ? targetDeck : midiEngine.getFocusedDeck();
}
protected SCPattern getTargetPattern() {
for (Engine.Deck deck : lx.engine.getDecks()) {
deck.addListener(new Engine.AbstractListener() {
public void patternDidChange(Engine.Deck deck, LXPattern pattern) {
- if (midiEngine.getFocusedDeck() == deck) {
- if (pattern != loadedPattern) {
- onPresetDirty(deck);
- }
+ if (pattern != loadedPattern) {
+ onPresetDirty(deck);
}
}
});