mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-15 05:54:24 +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..."
|
print "Starting new Deluge session..."
|
||||||
interface = deluge.interface.DelugeGTK()
|
interface = deluge.interface.DelugeGTK()
|
||||||
add_args(interface)
|
add_args(interface)
|
||||||
interface.start()
|
interface.start(options.tray)
|
||||||
|
|
||||||
|
|
||||||
def add_args(interface):
|
def add_args(interface):
|
||||||
|
@ -795,8 +795,9 @@ class DelugeGTK:
|
|||||||
|
|
||||||
|
|
||||||
## Start the timer that updates the interface
|
## Start the timer that updates the interface
|
||||||
def start(self):
|
def start(self, start_in_tray=False):
|
||||||
if not (self.window.flags() & gtk.VISIBLE):
|
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"
|
print "Showing window"
|
||||||
self.window.show()
|
self.window.show()
|
||||||
# go through torrent files to add
|
# go through torrent files to add
|
||||||
|
Loading…
x
Reference in New Issue
Block a user