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,7 +948,8 @@ 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()
|
||||||
client.core.rescan_plugins()
|
if client.connected():
|
||||||
|
client.core.rescan_plugins()
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def _on_button_find_plugins_clicked(self, widget):
|
def _on_button_find_plugins_clicked(self, widget):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user