Skip to content

Commit

Permalink
#228: strip "on HOST" from menu item in menu bar
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@11245 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 16, 2015
1 parent 639fbea commit 64986c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xpra/platform/darwin/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ def cb(menu_item):
callback(menu_item, action, state, pdata)
for group_id in sorted(window_menu.keys()):
group = window_menu[group_id]
title = window.get_title() or "Application"
try:
title = str(window._metadata.get("title"))
assert title
except:
title = window.get_title() or "Application"
app_menu = mh.make_menu()
for menuid in sorted(group.keys()):
menu_entries = group[menuid]
Expand Down

0 comments on commit 64986c4

Please sign in to comment.