Skip to content

Commit

Permalink
Xpra-org#4398 mark auto encoding as-is
Browse files Browse the repository at this point in the history
  • Loading branch information
GUAN-Xihao committed Nov 26, 2024
1 parent d6d153f commit 0131200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xpra/client/gtk3/tray_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
SERVER_NOT_SUPPORTED = "Not supported by the server"

# 'auto' is recorded as '' unfortunately:
GENERIC_ENCODINGS = ("", "stream", "grayscale")
GENERIC_ENCODINGS = ("auto", "stream", "grayscale")


class GTKTrayMenu(MenuHelper):
Expand Down
2 changes: 1 addition & 1 deletion xpra/client/mixins/encodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def get_core_encodings(self) -> list[str]:
def set_encoding(self, encoding: str) -> None:
log("set_encoding(%s)", encoding)
if encoding == "auto":
self.encoding = ""
self.encoding = "auto"
else:
encodings = self.get_encodings()
if encoding not in encodings:
Expand Down

0 comments on commit 0131200

Please sign in to comment.