From ad7391d51b09b7f3e642d9da10e3ef99a59b423a Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 3 Sep 2026 21:42:05 +0200 Subject: [PATCH] Use combo when there are too many refresh rates --- client/scenes/gui_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scenes/gui_settings.cpp b/client/scenes/gui_settings.cpp index d2b08dd8..d639cdcb 100644 --- a/client/scenes/gui_settings.cpp +++ b/client/scenes/gui_settings.cpp @@ -231,7 +231,7 @@ void settings_video(const settings_context & ctx) .id = "##refresh", .label = _("Refresh rate"), .description = _("Use 'auto' to select the refresh rate based on measured application performance. May cause flicker when a change happens."), - .ui = ui_kind::segmented, + .ui = rates.size() < 7 ? ui_kind::segmented : ui_kind::combo, .get_int = [&config, rates] { for (size_t i = 0; i < rates.size(); ++i) if (rates[i] == config.preferred_refresh_rate)