mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
add try/except to catch crash if the plugin configuration window is closed
This commit is contained in:
parent
120b3335b4
commit
d793835a7e
1 changed files with 4 additions and 1 deletions
|
@ -288,7 +288,10 @@ class PreferencesDlg:
|
|||
if plugin_value:
|
||||
self.plugins.enable_plugin(plugin_name)
|
||||
config = self.plugins.configurable_plugin(plugin_name)
|
||||
self.glade.get_widget("plugin_conf").set_sensitive(config)
|
||||
try:
|
||||
self.glade.get_widget("plugin_conf").set_sensitive(config)
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
self.plugins.disable_plugin(plugin_name)
|
||||
self.glade.get_widget("plugin_conf").set_sensitive(False)
|
||||
|
|
Loading…
Add table
Reference in a new issue