13
0

Mixbus needs to show Created-With on the recent sessions list

This commit is contained in:
Ben Loftis 2017-09-10 15:33:12 -05:00
parent fdbe22d005
commit 3c81351413
2 changed files with 7 additions and 0 deletions

View File

@ -374,7 +374,11 @@ SessionDialog::setup_recent_sessions ()
recent_session_display.set_model (recent_session_model);
recent_session_display.append_column (_("Session Name"), recent_session_columns.visible_name);
recent_session_display.append_column (_("Sample Rate"), recent_session_columns.sample_rate);
#ifdef MIXBUS
recent_session_display.append_column (_("Created With"), recent_session_columns.created_with);
#else
recent_session_display.append_column (_("File Resolution"), recent_session_columns.disk_format);
#endif
recent_session_display.append_column (_("Last Modified"), recent_session_columns.time_formatted);
recent_session_display.set_headers_visible (true);
recent_session_display.get_selection()->set_mode (SELECTION_SINGLE);
@ -863,6 +867,7 @@ SessionDialog::redisplay_recent_sessions ()
row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (dirname);
} else {
row[recent_session_columns.tip] = Gtkmm2ext::markup_escape_text (dirname + "\n" + string_compose (_("Last modified with: %1"), program_version));
row[recent_session_columns.created_with] = program_version;
}
++session_snapshot_count;

View File

@ -113,6 +113,7 @@ private:
add (fullpath);
add (sample_rate);
add (disk_format);
add (created_with);
add (time_modified);
add (time_formatted);
}
@ -121,6 +122,7 @@ private:
Gtk::TreeModelColumn<std::string> fullpath;
Gtk::TreeModelColumn<std::string> sample_rate;
Gtk::TreeModelColumn<std::string> disk_format;
Gtk::TreeModelColumn<std::string> created_with;
Gtk::TreeModelColumn<int64_t> time_modified;
Gtk::TreeModelColumn<std::string> time_formatted;
};