mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 04:19:55 +01:00
Start at a random visualisation. Fixes issue 3966.
This commit is contained in:
parent
d678788af7
commit
186a981614
@ -121,6 +121,11 @@ void ProjectMVisualisation::InitProjectM() {
|
||||
preset_model_ = new ProjectMPresetModel(this, this);
|
||||
Load();
|
||||
|
||||
// Start at a random preset.
|
||||
if (projectm_->getPlaylistSize() > 0) {
|
||||
projectm_->selectPreset(qrand() % projectm_->getPlaylistSize(), true);
|
||||
}
|
||||
|
||||
if (font_path.isNull()) {
|
||||
qWarning("ProjectM presets could not be found, search path was:\n %s",
|
||||
paths.join("\n ").toLocal8Bit().constData());
|
||||
|
Loading…
Reference in New Issue
Block a user