Skip to content

Commit

Permalink
dbt format
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulFreund committed Nov 9, 2023
1 parent 080e492 commit 587ee4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/deluge/gui/ui/keyboard/keyboard_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ ActionResult KeyboardScreen::padAction(int32_t x, int32_t y, int32_t velocity) {
// Pad pressed down, add to list if not full
if (velocity) {
//TODO: Logic should be inverted as part of a bigger rewrite
if(currentUIMode == UI_MODE_EXPLODE_ANIMATION
|| currentUIMode == UI_MODE_ANIMATION_FADE
|| currentUIMode == UI_MODE_INSTRUMENT_CLIP_COLLAPSING) {
if (currentUIMode == UI_MODE_EXPLODE_ANIMATION || currentUIMode == UI_MODE_ANIMATION_FADE
|| currentUIMode == UI_MODE_INSTRUMENT_CLIP_COLLAPSING) {
return ActionResult::DEALT_WITH;
}

Expand Down
2 changes: 1 addition & 1 deletion src/deluge/gui/views/session_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3089,7 +3089,7 @@ Clip* SessionView::gridCreateClip(uint32_t targetSection, Output* targetOutput,
InstrumentClip* newInstrumentClip = (InstrumentClip*)newClip;
// Create a new track for the clip
if (targetOutput == nullptr) {
if(!gridCreateNewTrackForClip(sourceClip->output->type, newInstrumentClip, false)) {
if (!gridCreateNewTrackForClip(sourceClip->output->type, newInstrumentClip, false)) {
currentSong->sessionClips.deleteAtIndex(0);
newClip->~Clip();
delugeDealloc(newClip);
Expand Down

0 comments on commit 587ee4a

Please sign in to comment.