mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Option to hide "-none-" from instrument dropdown
This is useful for the audition instrument selector.
This commit is contained in:
parent
c0fe67427d
commit
209536a967
3 changed files with 14 additions and 9 deletions
|
|
@ -39,7 +39,7 @@ class Editor;
|
|||
class InstrumentSelector : public Gtk::ComboBox
|
||||
{
|
||||
public:
|
||||
InstrumentSelector();
|
||||
InstrumentSelector (bool allow_none = true);
|
||||
|
||||
ARDOUR::PluginInfoPtr selected_instrument () const;
|
||||
std::string selected_instrument_name () const;
|
||||
|
|
@ -61,6 +61,7 @@ private:
|
|||
InstrumentListColumns _instrument_list_columns;
|
||||
uint32_t _reasonable_synth_id;
|
||||
uint32_t _gmsynth_id;
|
||||
bool _allow_none;
|
||||
PBD::ScopedConnection _update_connection;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue