mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-04 23:53:23 +00:00
Prevent exception when clicking 'Rescan Plugins' button when not connected to a daemon
This commit is contained in:
parent
f42e8c4316
commit
c9a622b846
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user