mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 02:18:41 +00:00
Fix #528 make sure gtkui config file is written before exiting
This commit is contained in:
parent
b75fc32982
commit
73dd64f8db
1 changed files with 3 additions and 4 deletions
|
@ -238,9 +238,6 @@ class GtkUI:
|
||||||
def shutdown(self, *args, **kwargs):
|
def shutdown(self, *args, **kwargs):
|
||||||
log.debug("gtkui shutting down..")
|
log.debug("gtkui shutting down..")
|
||||||
|
|
||||||
# Make sure the config is saved.
|
|
||||||
self.config.save()
|
|
||||||
|
|
||||||
# Shutdown all components
|
# Shutdown all components
|
||||||
component.shutdown()
|
component.shutdown()
|
||||||
if self.started_in_classic:
|
if self.started_in_classic:
|
||||||
|
@ -249,7 +246,9 @@ class GtkUI:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# Make sure the config is saved.
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
gtk.main_quit()
|
gtk.main_quit()
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue