Skip to content

Commit

Permalink
Bugfix - Stutter makes deluge unresponsive (#1556)
Browse files Browse the repository at this point in the history
Fixed bug where deluge would become unresponsive if you were stuttering while launching a clip

Went back to the 4.1.4 codebase where this issue was not present and noticed that we removed a bit of code (I assume accidentally) that was needed to prevent this issue from happening. So I just added that code back.
  • Loading branch information
seangoodvibes authored and m-m-adams committed Mar 23, 2024
1 parent 5acf5a9 commit 3787dd3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/deluge/gui/views/view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2561,6 +2561,14 @@ ActionResult View::clipStatusPadAction(Clip* clip, bool on, int32_t yDisplayIfIn
// No break
case UI_MODE_CLIP_PRESSED_IN_SONG_VIEW:
case UI_MODE_STUTTERING:
// this code is needed to allow users to launch clips while stuttering
// without it the deluge becomes unresponsive if you try to launch a clip while stuttering
// this is because it gets stuck in the stuttering UI mode and can't get out
if (on) {
sessionView.performActionOnPadRelease = false; // Even though there's a chance we're not in session view
session.toggleClipStatus(clip, NULL, Buttons::isShiftButtonPressed(), kInternalButtonPressLatency);
}
break;
case UI_MODE_HOLDING_STATUS_PAD:
if (on) {
enterUIMode(UI_MODE_HOLDING_STATUS_PAD);
Expand Down

0 comments on commit 3787dd3

Please sign in to comment.