Prevent exception when clicking 'Rescan Plugins' button when not connected to a daemon

This commit is contained in:
Andrew Resch 2009-07-13 21:55:34 +00:00
parent f42e8c4316
commit c9a622b846

View File

@ -948,6 +948,7 @@ class Preferences(component.Component):
def _on_button_rescan_plugins_clicked(self, widget):
component.get("PluginManager").scan_for_plugins()
if client.connected():
client.core.rescan_plugins()
self.show()