queue/Playlist: call OnModified(), eliminate duplicate code
This commit is contained in:
parent
6ff01cc72c
commit
008a9560fe
|
@ -40,8 +40,7 @@ playlist::TagModified(DetachedSong &&song)
|
|||
current_song.MoveTagItemsFrom(std::move(song));
|
||||
|
||||
queue.ModifyAtOrder(current);
|
||||
queue.IncrementVersion();
|
||||
idle_add(IDLE_PLAYLIST);
|
||||
OnModified();
|
||||
}
|
||||
|
||||
inline void
|
||||
|
|
|
@ -65,8 +65,6 @@ playlist::DatabaseModified(const Database &db)
|
|||
}
|
||||
}
|
||||
|
||||
if (modified) {
|
||||
queue.IncrementVersion();
|
||||
idle_add(IDLE_PLAYLIST);
|
||||
}
|
||||
if (modified)
|
||||
OnModified();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue