mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +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,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…
Add table
Add a link
Reference in a new issue