Dont attempt to get current song if we are still inactive
This commit is contained in:
@@ -2561,8 +2561,8 @@ void MainWindow::updateStatus(MPDStatus * const status)
|
||||
|
||||
// Check if song has changed or we're playing again after being stopped
|
||||
// and update song info if needed
|
||||
if (lastState == MPDState_Inactive
|
||||
|| (lastState == MPDState_Stopped && status->state() == MPDState_Playing)
|
||||
if ((MPDState_Inactive==lastState && MPDState_Inactive!=status->state())
|
||||
|| (MPDState_Stopped==lastState && MPDState_Playing==status->state())
|
||||
|| lastSongId != status->songId()) {
|
||||
emit currentSong();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user