Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* setup_xpra_tray should return the tray instance
* don't bother registering "reset_tray_title" with after_handshake if we don't have a tray instance to use

git-svn-id: https://xpra.org/svn/Xpra/trunk@17662 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 15, 2017
1 parent 80859ec commit bd70255
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/xpra/client/ui_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,10 +889,11 @@ 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)
def reset_tray_title():
if self.tray:
self.tray.set_tooltip(self.get_tray_title())
return self.after_handshake(reset_tray_title)
if tray:
def reset_tray_title():
tray.set_tooltip(self.get_tray_title())
self.after_handshake(reset_tray_title)
return tray

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

0 comments on commit bd70255

Please sign in to comment.