Skip to content

Commit

Permalink
fixup r17259: hide bandwidth-limit when mmap is enabled (not disabled…
Browse files Browse the repository at this point in the history
… - doh!)

git-svn-id: https://xpra.org/svn/Xpra/trunk@17263 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 27, 2017
1 parent e503656 commit d4f2814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/gtk_base/gtk_tray_menu_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def set_bwlimitmenu(*_args):
bandwidth_limit_menu_item.set_tooltip_text("memory mapped transfers are in use so bandwidth limits are disabled")
elif not self.client.server_bandwidth_limit_change:
bandwidth_limit_menu_item.set_tooltip_text("the server does not support bandwidth-limit")
set_sensitive(bandwidth_limit_menu_item, self.client.server_bandwidth_limit_change and self.client.mmap_enabled)
set_sensitive(bandwidth_limit_menu_item, self.client.server_bandwidth_limit_change and not self.client.mmap_enabled)
self.client.after_handshake(set_bwlimitmenu)
return bandwidth_limit_menu_item

Expand Down

0 comments on commit d4f2814

Please sign in to comment.