13
0

Don't allow dropdown scroll for patch-banks

Changing banks refills the dropdown. This cannot be avoided
since unnamed banks are not in the dropdown, and the dropdown
content can change dynamically. Scroll-wheel does not work reliably.
This commit is contained in:
Robin Gareus 2022-03-02 18:26:23 +01:00
parent bff55cc881
commit 4fb8dd805f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -53,6 +53,7 @@ PatchBankList::PatchBankList ()
, _ignore_spin_btn_signals (false) , _ignore_spin_btn_signals (false)
{ {
_program_table.set_spacings (1); _program_table.set_spacings (1);
_bank_select.disable_scrolling (); /* changing bank refills the dropdown */
for (uint8_t pgm = 0; pgm < 128; ++pgm) { for (uint8_t pgm = 0; pgm < 128; ++pgm) {
_program_btn[pgm].set_text_ellipsize (Pango::ELLIPSIZE_END); _program_btn[pgm].set_text_ellipsize (Pango::ELLIPSIZE_END);