mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-21 15:48:12 +00:00
Fix #528 make sure gtkui config file is written before exiting
This commit is contained in:
parent
b75fc32982
commit
73dd64f8db
@ -238,9 +238,6 @@ class GtkUI:
|
||||
def shutdown(self, *args, **kwargs):
|
||||
log.debug("gtkui shutting down..")
|
||||
|
||||
# Make sure the config is saved.
|
||||
self.config.save()
|
||||
|
||||
# Shutdown all components
|
||||
component.shutdown()
|
||||
if self.started_in_classic:
|
||||
@ -249,7 +246,9 @@ class GtkUI:
|
||||
except:
|
||||
pass
|
||||
|
||||
# Make sure the config is saved.
|
||||
self.config.save()
|
||||
|
||||
try:
|
||||
gtk.main_quit()
|
||||
except RuntimeError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user