13
0

Clarify that there are no archive file format options

This commit is contained in:
Robin Gareus 2024-04-02 09:52:03 +02:00
parent 6d29a0e99b
commit 02220783e1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 4 additions and 6 deletions

View File

@ -34,15 +34,13 @@ using namespace ARDOUR;
SessionArchiveDialog::SessionArchiveDialog ()
: ArdourDialog (_("Zip/Archive Current Session"))
, ProgressReporter ()
, format_Label (ARDOUR::session_archive_suffix)
, only_used_checkbox (_("Exclude unused audio sources"))
{
VBox* vbox = get_vbox();
vbox->set_spacing (6);
format_selector.append (ARDOUR::session_archive_suffix);
format_selector.set_active_text (ARDOUR::session_archive_suffix);
encode_selector.append (_("None"));
encode_selector.append (_("FLAC 16bit"));
encode_selector.append (_("FLAC 24bit"));
@ -66,7 +64,7 @@ SessionArchiveDialog::SessionArchiveDialog ()
HBox* hbox = manage (new HBox);
hbox->set_spacing (6);
hbox->pack_start (name_entry, true, true);
hbox->pack_start (format_selector, false, false);
hbox->pack_start (format_Label, false, false);
table->attach (*hbox, 1, 2, row, row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::SHRINK);
++row;
@ -124,7 +122,7 @@ SessionArchiveDialog::name_entry_changed ()
return;
}
std::string dir = Glib::build_filename (target_folder(), name_entry.get_text() + format_selector.get_active_text ());
std::string dir = Glib::build_filename (target_folder(), name_entry.get_text() + ARDOUR::session_archive_suffix);
if (Glib::file_test (dir, Glib::FILE_TEST_EXISTS)) {
set_response_sensitive (RESPONSE_OK, false);

View File

@ -54,7 +54,7 @@ protected:
private:
Gtk::FileChooserButton target_folder_selector;
Gtk::Entry name_entry;
Gtk::ComboBoxText format_selector;
Gtk::Label format_Label;
Gtk::ComboBoxText encode_selector;
Gtk::ComboBoxText compression_selector;
Gtk::CheckButton only_used_checkbox;