Fix preset dirtying and lights update on DPat
[SugarCubes.git] / DanUtil.pde
index b769b781ff7f4d688bf6f9851acf5351aeb3551a..85f49fd8573ded8ae85591d35576528457130961 100644 (file)
@@ -129,8 +129,7 @@ public class DPat extends SCPattern
        void SetNoteOn  (int row, int col, int clr){ if (APCOut != null) APCOut.sendNoteOn      (col, row, clr); }
        void SetNoteOff (int row, int col, int clr){ if (APCOut != null) APCOut.sendNoteOff     (col, row, clr); }
 
-       boolean         isFocused()                                                     { return midiEngine != null && midiEngine.getFocusedDeck() != null &&
-                                                                                                                        this == midiEngine.getFocusedDeck().getActivePattern();                }
+       boolean         isFocused()                                                     { return midiEngine != null && midiEngine.getFocusedPattern() == this; }
        void            onInactive()                                            { uiDebugText.setText(""); }
        void            onTransitionEnd()                                       { updateLights(); }
        void            onReset() {