mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Only make the export button sensitive if there's something to export
This commit is contained in:
parent
0da2d7bf8a
commit
ccff1c5dbd
1 changed files with 3 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ TemplateManager::TemplateManager ()
|
|||
vb_btns->pack_start (_export_all_templates_button, false, false);
|
||||
vb_btns->pack_start (_import_template_set_button, false, false);
|
||||
|
||||
_export_all_templates_button.set_sensitive (true);
|
||||
_export_all_templates_button.set_sensitive (false);
|
||||
_export_all_templates_button.signal_clicked().connect (sigc::mem_fun (*this, &TemplateManager::export_all_templates));
|
||||
|
||||
_import_template_set_button.set_sensitive (true);
|
||||
|
|
@ -145,6 +145,8 @@ TemplateManager::setup_model (const vector<TemplateInfo>& templates)
|
|||
row[_template_columns.name] = it->name;
|
||||
row[_template_columns.path] = it->path;
|
||||
}
|
||||
|
||||
_export_all_templates_button.set_sensitive (!templates.empty ());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue