Remove unnecessary code
This commit is contained in:
committed by
nikwen.developer@gmail.com
parent
2e05fe0564
commit
002c07eb61
@@ -155,12 +155,6 @@ void MPDBackend::setCoverFetch(bool s) {
|
||||
Covers::self()->setFetchCovers(s);
|
||||
}
|
||||
|
||||
void MPDBackend::resetAllModels() { //TODO: Better idea?
|
||||
MusicLibraryModel::self()->resetModel();
|
||||
AlbumsModel::self()->resetModel();
|
||||
PlaylistsModel::self()->resetModel();
|
||||
}
|
||||
|
||||
void MPDBackend::playPause() {
|
||||
switch (MPDStatus::self()->state()) {
|
||||
case MPDState_Playing:
|
||||
|
||||
@@ -111,7 +111,6 @@ public:
|
||||
Q_INVOKABLE int getCrossfade() { return MPDStatus::self()->crossFade(); }
|
||||
Q_INVOKABLE QStringList getOutputs () { return outputSettings; }
|
||||
Q_INVOKABLE QString getReplayGain () { return replayGainSetting; }
|
||||
Q_INVOKABLE void resetAllModels();
|
||||
|
||||
PlayQueueProxyModel * getPlayQueueProxyModel() { return &playQueueProxyModel; }
|
||||
MusicLibraryProxyModel * getArtistsProxyModel() { return &artistsProxyModel; }
|
||||
|
||||
@@ -55,7 +55,6 @@ Item {
|
||||
onContentsChanged: {
|
||||
if (contents != undefined) {
|
||||
backend.setCoverFetch(contents["coverFetch"]) //TODO: Untick fetch checkbox => Delete saved images => Reopen app => Tick fetch checkbox => First few album covers are not loaded
|
||||
// backend.resetAllModels() //TODO-R: Remove code
|
||||
fetchCoversChanged()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user