Remove disabling repeat and shuffle buttons

It's more confusing than helpful
This commit is contained in:
Jonas Kvinge
2020-11-20 21:48:10 +01:00
parent 47754951f0
commit 91e5cafe76
5 changed files with 10 additions and 20 deletions

View File

@@ -205,17 +205,6 @@ void PlaylistSequence::SetShuffleMode(const ShuffleMode mode) {
}
void PlaylistSequence::SetUsingDynamicPlaylist(const bool dynamic) {
dynamic_ = dynamic;
const QString not_available(tr("Not available while using a dynamic playlist"));
setEnabled(!dynamic);
ui_->shuffle->setToolTip(dynamic ? not_available : tr("Shuffle"));
ui_->repeat->setToolTip(dynamic ? not_available : tr("Repeat"));
}
PlaylistSequence::ShuffleMode PlaylistSequence::shuffle_mode() const {
return dynamic_ ? Shuffle_Off : shuffle_mode_;
}