summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Library.py
diff options
context:
space:
mode:
Diffstat (limited to 'nephilim/plugins/Library.py')
-rw-r--r--nephilim/plugins/Library.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nephilim/plugins/Library.py b/nephilim/plugins/Library.py
index 06e2a41..391c7a1 100644
--- a/nephilim/plugins/Library.py
+++ b/nephilim/plugins/Library.py
@@ -77,6 +77,7 @@ class LibraryWidget(QtGui.QWidget):
modes = None
settings = None
plugin = None
+ logger = None
class LibraryModel(QtGui.QStandardItemModel):
def fill(self, songs, mode):
@@ -127,6 +128,7 @@ class LibraryWidget(QtGui.QWidget):
def __init__(self, plugin):
QtGui.QWidget.__init__(self)
self.plugin = plugin
+ self.logger = plugin.logger
self.settings = QtCore.QSettings()
self.settings.beginGroup(self.plugin.name())
@@ -156,7 +158,7 @@ class LibraryWidget(QtGui.QWidget):
self.connect(self.plugin.mpclient(), QtCore.SIGNAL('connected'), self.fill_library)
self.connect(self.plugin.mpclient(), QtCore.SIGNAL('disconnected'), self.fill_library)
- self.connect(self.plugin.mpclient(), QtCore.SIGNAL('update_finished'), self.fill_library)
+ self.connect(self.plugin.mpclient(), QtCore.SIGNAL('db_updated'), self.fill_library)
def refresh_modes(self):
self.modes.clear()
@@ -165,6 +167,7 @@ class LibraryWidget(QtGui.QWidget):
self.modes.setCurrentIndex(self.settings.value('current_mode').toInt()[0])
def fill_library(self):
+ self.logger.info('Refreshing library.')
self.library_model.fill(self.plugin.mpclient().library(), str(self.modes.currentText()))
def filter_changed(self, text):