Skip to content

Commit

Permalink
* if we failed to setup the systray, don't try to show it!
Browse files Browse the repository at this point in the history
* after we have processed the server handshake, reset the systray tooltip since we may have updated the session-name

git-svn-id: https://xpra.org/svn/Xpra/trunk@17512 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 26, 2017
1 parent 136f3fc commit d7e7ec8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/xpra/client/ui_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ def noauto(v):
self.menu_helper = self.make_tray_menu_helper()
def setup_xpra_tray():
self.tray = self.setup_xpra_tray(opts.tray_icon or "xpra")
self.tray.show()
if self.tray:
self.tray.show()
if opts.delay_tray:
self.connect("first-ui-received", setup_xpra_tray)
else:
Expand Down Expand Up @@ -879,7 +880,10 @@ def xpra_tray_geometry(*args):
menu = self.menu_helper.build()
tray = self.make_tray(XPRA_APP_ID, menu, self.get_tray_title(), tray_icon_filename, xpra_tray_geometry, xpra_tray_click, xpra_tray_mouseover, xpra_tray_exit)
traylog("setup_xpra_tray(%s)=%s", tray_icon_filename, tray)
return tray
def reset_tray_title():
if self.tray:
self.tray.set_tooltip(self.get_tray_title())
return self.after_handshake(reset_tray_title)

def get_tray_title(self):
t = []
Expand Down

0 comments on commit d7e7ec8

Please sign in to comment.