1
0
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:
David Sansome 2013-12-02 21:24:15 +11:00
parent d678788af7
commit 186a981614

View File

@ -121,6 +121,11 @@ void ProjectMVisualisation::InitProjectM() {
preset_model_ = new ProjectMPresetModel(this, this); preset_model_ = new ProjectMPresetModel(this, this);
Load(); Load();
// Start at a random preset.
if (projectm_->getPlaylistSize() > 0) {
projectm_->selectPreset(qrand() % projectm_->getPlaylistSize(), true);
}
if (font_path.isNull()) { if (font_path.isNull()) {
qWarning("ProjectM presets could not be found, search path was:\n %s", qWarning("ProjectM presets could not be found, search path was:\n %s",
paths.join("\n ").toLocal8Bit().constData()); paths.join("\n ").toLocal8Bit().constData());