mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Make sure gtkui.conf is written on quit.
This commit is contained in:
parent
0ed8ac1cdc
commit
1f6798c98a
4 changed files with 12 additions and 1 deletions
|
@ -101,8 +101,11 @@ class GtkUI:
|
||||||
# Start the gtk main loop
|
# Start the gtk main loop
|
||||||
gtk.main()
|
gtk.main()
|
||||||
|
|
||||||
|
log.debug("gtkui shutting down..")
|
||||||
# Clean-up
|
# Clean-up
|
||||||
del self.mainwindow
|
del self.mainwindow
|
||||||
del self.signal_receiver
|
del self.signal_receiver
|
||||||
del self.plugins
|
del self.plugins
|
||||||
|
# Make sure the config file is closed and saved to disk.
|
||||||
|
deluge.configmanager.close("gtkui.conf")
|
||||||
del deluge.configmanager
|
del deluge.configmanager
|
||||||
|
|
|
@ -92,6 +92,12 @@ class MainWindow:
|
||||||
self.window.hide()
|
self.window.hide()
|
||||||
|
|
||||||
def quit(self):
|
def quit(self):
|
||||||
|
del self.menubar
|
||||||
|
del self.toolbar
|
||||||
|
del self.torrentview
|
||||||
|
del self.torrentdetails
|
||||||
|
del self.preferences
|
||||||
|
del self.config
|
||||||
self.hide()
|
self.hide()
|
||||||
gtk.main_quit()
|
gtk.main_quit()
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,9 @@ class Preferences:
|
||||||
"on_toggle": self.on_toggle
|
"on_toggle": self.on_toggle
|
||||||
})
|
})
|
||||||
|
|
||||||
|
def __del__(self):
|
||||||
|
del self.gtkui_config
|
||||||
|
|
||||||
def add_page(self, name, widget):
|
def add_page(self, name, widget):
|
||||||
"""Add a another page to the notebook"""
|
"""Add a another page to the notebook"""
|
||||||
index = self.notebook.append_page(widget)
|
index = self.notebook.append_page(widget)
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
# statement from all source files in the program, then also delete it here.
|
# statement from all source files in the program, then also delete it here.
|
||||||
|
|
||||||
import deluge.ui.functions as functions
|
import deluge.ui.functions as functions
|
||||||
from deluge.config import Config
|
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
|
|
||||||
class Signals:
|
class Signals:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue