mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-10 02:25:53 +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):
|
def _on_button_rescan_plugins_clicked(self, widget):
|
||||||
component.get("PluginManager").scan_for_plugins()
|
component.get("PluginManager").scan_for_plugins()
|
||||||
|
if client.connected():
|
||||||
client.core.rescan_plugins()
|
client.core.rescan_plugins()
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user