Skip to content

Commit

Permalink
#4398 quality and speed can be used with all generic encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 20, 2024
1 parent 5e2b804 commit 28034be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xpra/client/gtk3/gtk_tray_menu_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@

SERVER_NOT_SUPPORTED = "Not supported by the server"

GENERIC_ENCODINGS = ("", "stream", "grayscale")



class GTKTrayMenuBase(MenuHelper):

Expand Down Expand Up @@ -757,7 +760,7 @@ def set_quality(self, q):
def set_qualitymenu(self, *_args):
if self.quality:
can_use = not self.client.mmap_enabled and \
(self.client.encoding in self.client.server_encodings_with_quality or self.client.encoding=="auto")
(self.client.encoding in self.client.server_encodings_with_quality or self.client.encoding in GENERIC_ENCODINGS)
set_sensitive(self.quality, can_use)
if self.client.mmap_enabled:
self.quality.set_tooltip_text("Speed is always 100% with mmap")
Expand Down Expand Up @@ -806,7 +809,7 @@ def set_speed(self, s):
def set_speedmenu(self, *_args):
if self.speed:
can_use = not self.client.mmap_enabled and \
(self.client.encoding in self.client.server_encodings_with_speed or self.client.encoding=="auto")
(self.client.encoding in self.client.server_encodings_with_speed or self.client.encoding in GENERIC_ENCODINGS)
set_sensitive(self.speed, can_use)
if self.client.mmap_enabled:
self.speed.set_tooltip_text("Quality is always 100% with mmap")
Expand Down

0 comments on commit 28034be

Please sign in to comment.