From 587ee4a10bf89d372ce1ce14c3e7268665829c28 Mon Sep 17 00:00:00 2001 From: Paul Freund Date: Thu, 9 Nov 2023 22:45:47 +0100 Subject: [PATCH] dbt format --- src/deluge/gui/ui/keyboard/keyboard_screen.cpp | 5 ++--- src/deluge/gui/views/session_view.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/deluge/gui/ui/keyboard/keyboard_screen.cpp b/src/deluge/gui/ui/keyboard/keyboard_screen.cpp index f159c65a00..9304aad75b 100644 --- a/src/deluge/gui/ui/keyboard/keyboard_screen.cpp +++ b/src/deluge/gui/ui/keyboard/keyboard_screen.cpp @@ -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; } diff --git a/src/deluge/gui/views/session_view.cpp b/src/deluge/gui/views/session_view.cpp index c67cd11a60..4113d9bc9a 100644 --- a/src/deluge/gui/views/session_view.cpp +++ b/src/deluge/gui/views/session_view.cpp @@ -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);