Commit b424748e authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Emit change for CanSeek only if it actually changed

parent f48989b7
......@@ -481,12 +481,14 @@ void MPrisPlugin::setPlaybackStatus(const QString &playbackStatus)
void MPrisPlugin::setLength(qlonglong length)
if (m_length != length) {
m_length = length;
//emit metadataChanged();
const bool oldCanSeek = canSeek();
m_length = length;
emitPropertyChange(m_player, "Metadata");
emitPropertyChange(m_player, "CanSeek");
if (oldCanSeek != canSeek()) {
emitPropertyChange(m_player, "CanSeek");
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment