From 6c5ce9266f3183a38b62cd1fe4eb815f8f19dbc9 Mon Sep 17 00:00:00 2001 From: Severin Leonhardt Date: Wed, 20 May 2026 17:59:37 +0200 Subject: [PATCH] Update to JUCE 8.0.13 The return type of `showOkCancelBox` changed from int to bool. Adjusted the calling code accordingly. --- JUCE | 2 +- Source/TrackUi.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/JUCE b/JUCE index c352e248..7c9d3783 160000 --- a/JUCE +++ b/JUCE @@ -1 +1 @@ -Subproject commit c352e2489000ffeb9e397051377d75eef2efe641 +Subproject commit 7c9d3783b127263d72bb65fe0a7e2dc8a02a7ac2 diff --git a/Source/TrackUi.cpp b/Source/TrackUi.cpp index 0b10e724..732bc409 100644 --- a/Source/TrackUi.cpp +++ b/Source/TrackUi.cpp @@ -192,7 +192,7 @@ void TrackUi::buttonClicked(juce::Button* button) false, [this]() { - int alertResult = juce::AlertWindow::showOkCancelBox(juce::AlertWindow::QuestionIcon, + const bool alertResult = juce::AlertWindow::showOkCancelBox(juce::AlertWindow::QuestionIcon, TRANS("Confirm"), TRANS("Do you really want to remove the audio file from this track?"), TRANS("Yes"), @@ -200,7 +200,7 @@ void TrackUi::buttonClicked(juce::Button* button) this, nullptr); - if (alertResult == 1) + if (alertResult) m_track.unloadFile(); }); m.addSeparator();