Skip to content

Commit

Permalink
add notification action option to turn off all bandwidth detection
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19905 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 10, 2018
1 parent 6008ee8 commit c2d2ee1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xpra/server/source/windows_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,12 @@ def record_congestion_event(self, source, late_pct=0, send_speed=0):
summary = "Network Performance Issue"
body = "Your network connection is struggling to keep up,\n" + \
"consider lowering the bandwidth limit,\n" + \
"or lowering the picture quality"
"or turning off automatic network congestion management.\n" + \
"Choosing 'ignore' will silence all further warnings."
actions = []
if self.bandwidth_limit==0 or self.bandwidth_limit>MIN_BANDWIDTH:
actions += ["lower-bandwidth", "Lower bandwidth limit"]
actions += ["bandwidth-off", "Turn off"]
#if self.default_min_quality>10:
# actions += ["lower-quality", "Lower quality"]
actions += ["ignore", "Ignore"]
Expand All @@ -616,5 +618,7 @@ def congestion_notification_callback(self, nid, action_id):
# self.default_min_quality = max(1, self.default_min_quality-15)
# self.set_min_quality(self.default_min_quality)
# self.setting_changed("min-quality", self.default_min_quality)
elif action_id=="bandwidth-off":
self.bandwidth_detection = False
elif action_id=="ignore":
self.bandwidth_warnings = False

0 comments on commit c2d2ee1

Please sign in to comment.