soundcloud_export_selector->set_visible (show_credentials_entry);
}
-void
-ExportFileNotebook::FilePage::on_hide ()
-{
- VBox::on_hide ();
- if (save_format_on_hide) {
- profile_manager->save_format_to_disk (format_state->format);
- save_format_on_hide = false;
- }
-}
-
void
ExportFileNotebook::FilePage::analysis_changed ()
{
format_state->format->set_analyse (analysis_button.get_active ());
- save_format_on_hide = true;
+ profile_manager->save_format_to_disk (format_state->format);
}
void
filename_label (_("Location"), Gtk::ALIGN_LEFT),
soundcloud_upload_button (_("Upload to Soundcloud")),
analysis_button (_("Analyze Exported Audio")),
- tab_number (number),
- save_format_on_hide(false)
+ tab_number (number)
{
set_border_width (12);
void
ExportFileNotebook::FilePage::soundcloud_upload_changed ()
{
- save_format_on_hide = true;
+ profile_manager->save_format_to_disk (format_state->format);
}
void
void analysis_changed ();
void soundcloud_upload_changed ();
- void on_hide ();
-
ARDOUR::ExportProfileManager::FormatStatePtr format_state;
ARDOUR::ExportProfileManager::FilenameStatePtr filename_state;
ManagerPtr profile_manager;
Gtk::Alignment tab_close_alignment;
Gtk::Button tab_close_button;
uint32_t tab_number;
-
- bool save_format_on_hide;
};
};