mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Prevent exception when clicking 'Rescan Plugins' button when not connected to a daemon
This commit is contained in:
parent
f42e8c4316
commit
c9a622b846
1 changed files with 2 additions and 1 deletions
|
@ -948,7 +948,8 @@ class Preferences(component.Component):
|
|||
|
||||
def _on_button_rescan_plugins_clicked(self, widget):
|
||||
component.get("PluginManager").scan_for_plugins()
|
||||
client.core.rescan_plugins()
|
||||
if client.connected():
|
||||
client.core.rescan_plugins()
|
||||
self.show()
|
||||
|
||||
def _on_button_find_plugins_clicked(self, widget):
|
||||
|
|
Loading…
Add table
Reference in a new issue