pianoroll: connect to UI config param changes
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -250,4 +250,5 @@ class Pianoroll : public CueEditor
|
||||
void hide_count_in ();
|
||||
|
||||
void instant_save ();
|
||||
void parameter_changed (std::string param);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user