mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 13:34:21 +00:00
start hidden in tray fix - oksana
This commit is contained in:
parent
ac483482b6
commit
6f7ac72599
@ -66,7 +66,7 @@ def start_deluge():
|
||||
print "Starting new Deluge session..."
|
||||
interface = deluge.interface.DelugeGTK()
|
||||
add_args(interface)
|
||||
interface.start()
|
||||
interface.start(options.tray)
|
||||
|
||||
|
||||
def add_args(interface):
|
||||
|
@ -795,8 +795,9 @@ class DelugeGTK:
|
||||
|
||||
|
||||
## Start the timer that updates the interface
|
||||
def start(self):
|
||||
if not (self.window.flags() & gtk.VISIBLE):
|
||||
def start(self, start_in_tray=False):
|
||||
if not(start_in_tray and self.config.get("enable_system_tray") and
|
||||
self.has_tray) and not self.window.get_property("visible"):
|
||||
print "Showing window"
|
||||
self.window.show()
|
||||
# go through torrent files to add
|
||||
|
Loading…
x
Reference in New Issue
Block a user