From c712de5954c7b732cb65fdb96c0d7fe621ad70b6 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 7 Jan 2025 22:59:26 +0700 Subject: [PATCH] doh: auto-refresh-delay is stored as a float --- xpra/gtk/configure/encodings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpra/gtk/configure/encodings.py b/xpra/gtk/configure/encodings.py index f52e243cfd..1f15aa921e 100644 --- a/xpra/gtk/configure/encodings.py +++ b/xpra/gtk/configure/encodings.py @@ -75,7 +75,7 @@ def do_populate(self, config): self.add_widget(Gtk.Separator(orientation=Gtk.Orientation.HORIZONTAL)) self.add_widget(label("Auto Refresh Delay (milliseconds)", font="Sans 14")) self.add_widget(label("Longer delays may become noticeable but save bandwidth")) - adjust = Gtk.Adjustment(value=config.auto_refresh_delay, lower=0, upper=1000, + adjust = Gtk.Adjustment(value=round(config.auto_refresh_delay * 1000), lower=0, upper=1000, step_increment=50, page_increment=0, page_size=0) scale = make_scale(adjust, { 0: "Disabled",