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