mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 10:28:39 +00:00
Stop update timer before shutting down.
This commit is contained in:
parent
8b6a14403f
commit
67347e67b6
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,7 @@ class MainWindow:
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
"""Start the update thread and show the window"""
|
"""Start the update thread and show the window"""
|
||||||
gobject.timeout_add(1000, self.update)
|
self.update_timer = gobject.timeout_add(1000, self.update)
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
|
@ -113,6 +113,8 @@ class MainWindow:
|
||||||
return self.window.get_property("visible")
|
return self.window.get_property("visible")
|
||||||
|
|
||||||
def quit(self):
|
def quit(self):
|
||||||
|
# Stop the update timer from running
|
||||||
|
gobject.source_remove(self.update_timer)
|
||||||
del self.menubar
|
del self.menubar
|
||||||
del self.toolbar
|
del self.toolbar
|
||||||
del self.torrentview
|
del self.torrentview
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue