Dont load folder list until view is visible.
This commit is contained in:
committed by
craig.p.drummond
parent
afd5082a43
commit
abc18ca1a7
@@ -79,6 +79,7 @@ void DirViewModel::setEnabled(bool e)
|
||||
if (enabled) {
|
||||
connect(MPDConnection::self(), SIGNAL(dirViewUpdated(DirViewItemRoot *)), this, SLOT(updateDirView(DirViewItemRoot *)));
|
||||
} else {
|
||||
clear();
|
||||
disconnect(MPDConnection::self(), SIGNAL(dirViewUpdated(DirViewItemRoot *)), this, SLOT(updateDirView(DirViewItemRoot *)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user