Un-hardcode number of trigger-slots

This commit is contained in:
Robin Gareus 2021-12-24 00:29:16 +01:00
parent b2b9c38bc3
commit d78364f90b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 2 additions and 1 deletions

View File

@ -80,6 +80,7 @@
#include "ardour/transient_detector.h"
#include "ardour/transport_master_manager.h"
#include "ardour/transpose.h"
#include "ardour/triggerbox.h"
#include "ardour/vca_manager.h"
#include "canvas/canvas.h"
@ -4184,7 +4185,7 @@ Editor::bounce_range_selection (BounceTarget target, bool enable_processing)
HBox* tbox = manage (new HBox);
tslot = manage (new ArdourDropdown ());
for (int c = 0; c < 8; ++c) {
for (int c = 0; c < TriggerBox::default_triggers_per_box; ++c) {
tslot->append_text_item (string_compose ("%1", (char)('A' + c))); // XXX not translatable
}
tslot->set_active ("A");