Use combo when there are too many refresh rates

This commit is contained in:
Patrick Nicolas
2026-09-03 23:02:49 +02:00
parent 42b3417ba9
commit ad7391d51b
+1 -1
View File
@@ -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)