mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
enable start in tray
This commit is contained in:
parent
4a858a70bc
commit
c6c649485e
1 changed files with 5 additions and 1 deletions
|
@ -84,7 +84,11 @@ class MainWindow:
|
||||||
def start(self):
|
def start(self):
|
||||||
"""Start the update thread and show the window"""
|
"""Start the update thread and show the window"""
|
||||||
self.update_timer = gobject.timeout_add(1000, self.update)
|
self.update_timer = gobject.timeout_add(1000, self.update)
|
||||||
self.show()
|
if not(self.config["start_in_tray"] and \
|
||||||
|
self.config["enable_system_tray"]) and not \
|
||||||
|
self.window.get_property("visible"):
|
||||||
|
log.debug("Showing window")
|
||||||
|
self.show()
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
# Don't update the UI if the the window is minimized.
|
# Don't update the UI if the the window is minimized.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue