mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Fix shutdown() to accept any number of arguments
This commit is contained in:
parent
971c7e6f1d
commit
48ab9d7522
@ -227,7 +227,7 @@ class GtkUI:
|
||||
else:
|
||||
self.shutdown()
|
||||
|
||||
def shutdown(self, data=None):
|
||||
def shutdown(self, *args, **kwargs):
|
||||
log.debug("gtkui shutting down..")
|
||||
|
||||
# Make sure the config is saved.
|
||||
@ -240,7 +240,10 @@ class GtkUI:
|
||||
client.shutdown()
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
gtk.main_quit()
|
||||
except RuntimeError:
|
||||
pass
|
||||
|
||||
def _on_new_core(self, data):
|
||||
component.start()
|
||||
|
Loading…
x
Reference in New Issue
Block a user