From 1b0aeef8bebaa1e62e88cc7b6c544d36dcd75743 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 17 Nov 2025 16:04:59 -0700 Subject: [PATCH] when using cue page pianoroll record length dropdown, show active value --- gtk2_ardour/cue_editor.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gtk2_ardour/cue_editor.cc b/gtk2_ardour/cue_editor.cc index b3b0987d5f..fc88ac77f4 100644 --- a/gtk2_ardour/cue_editor.cc +++ b/gtk2_ardour/cue_editor.cc @@ -689,6 +689,20 @@ CueEditor::set_recording_length (Temporal::BBT_Offset dur) { EC_LOCAL_TEMPO_SCOPE; + std::string label; + + switch (dur.bars) { + case 0: + label = _("Until Stopped"); + break; + case 1: + label = _("1 Bar"); + break; + default: + label = (string_compose (_("%1 Bars"), dur.bars)); + } + + length_selector.set_active (label); rec_length = dur; }