Fix AFP reverse mode desync on new sample load (#8158)

Previously, loading a new sample in an AFP instance with reverse enabled would desync the button from the model, such that the button would indicate the sample was reversed despite the new sample not actually being reversed.

This commit fixes this behavior so that samples loaded into an AFP instance with reverse enabled are actually reversed.
This commit is contained in:
Lisa Magdalena Riedler
2025-12-09 00:17:47 +01:00
committed by GitHub
parent dd9afe7c23
commit f0cb32ff08

View File

@@ -320,6 +320,7 @@ void AudioFileProcessor::setAudioFile(const QString& _audio_file, bool _rename)
m_sample = Sample(gui::SampleLoader::createBufferFromFile(_audio_file));
loopPointChanged();
reverseModelChanged();
emit sampleUpdated();
}