mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +00:00
Fix #528 make sure gtkui config file is written before exiting
This commit is contained in:
parent
43c8d0ead2
commit
790dcc49ca
2 changed files with 24 additions and 22 deletions
|
@ -1,6 +1,7 @@
|
||||||
Deluge 1.0.5 (In Development)
|
Deluge 1.0.5 (In Development)
|
||||||
GtkUI:
|
GtkUI:
|
||||||
* Increase the per-torrent stop share ratio max to 99999.0
|
* Increase the per-torrent stop share ratio max to 99999.0
|
||||||
|
* Fix #528 make sure gtkui config file is written before exiting
|
||||||
|
|
||||||
WebUi:
|
WebUi:
|
||||||
* Javascript auto refresh for both templates.
|
* Javascript auto refresh for both templates.
|
||||||
|
|
|
@ -221,9 +221,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:
|
||||||
|
@ -231,6 +228,10 @@ class GtkUI:
|
||||||
client.shutdown()
|
client.shutdown()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# Make sure the config is saved.
|
||||||
|
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