pianoroll: connect to UI config param changes

This commit is contained in:
Paul Davis 2025-08-06 11:07:28 -06:00
parent f4da0ff76d
commit 35ee5a54d5
2 changed files with 12 additions and 0 deletions

View file

@ -90,6 +90,8 @@ Pianoroll::Pianoroll (std::string const & name, bool with_transport)
set_action_defaults ();
set_mouse_mode (Editing::MouseContent, true);
UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &Pianoroll::parameter_changed));
}
Pianoroll::~Pianoroll ()
@ -1935,3 +1937,12 @@ Pianoroll::instant_save ()
CueEditor::instant_save ();
}
void
Pianoroll::parameter_changed (std::string param)
{
if (param == X_("note-name-display")) {
if (prh) {
prh->instrument_info_change ();
}
}
}

View file

@ -250,4 +250,5 @@ class Pianoroll : public CueEditor
void hide_count_in ();
void instant_save ();
void parameter_changed (std::string param);
};