13
0

make "modified-with" a session member

This commit is contained in:
Paul Davis 2024-07-11 19:02:53 -06:00
parent 9b1a56febf
commit 4212e23e77
2 changed files with 4 additions and 1 deletions

View File

@ -2381,6 +2381,7 @@ private:
std::shared_ptr<Route> get_midi_nth_route_by_id (PresentationInfo::order_t n) const; std::shared_ptr<Route> get_midi_nth_route_by_id (PresentationInfo::order_t n) const;
std::string created_with; std::string created_with;
mutable std::string modified_with;
void midi_track_presentation_info_changed (PBD::PropertyChange const &, std::weak_ptr<MidiTrack>); void midi_track_presentation_info_changed (PBD::PropertyChange const &, std::weak_ptr<MidiTrack>);
void rewire_selected_midi (std::shared_ptr<MidiTrack>); void rewire_selected_midi (std::shared_ptr<MidiTrack>);

View File

@ -1215,7 +1215,7 @@ Session::state (bool save_template, snapshot_t snapshot_type, bool for_archive,
child = node->add_child ("ProgramVersion"); child = node->add_child ("ProgramVersion");
child->set_property("created-with", created_with); child->set_property("created-with", created_with);
std::string modified_with = string_compose ("%1 %2", PROGRAM_NAME, revision); modified_with = string_compose ("%1 %2", PROGRAM_NAME, revision);
child->set_property("modified-with", modified_with); child->set_property("modified-with", modified_with);
/* store configuration settings */ /* store configuration settings */
@ -1780,6 +1780,8 @@ Session::set_state (const XMLNode& node, int version)
created_with = "unknown"; created_with = "unknown";
if ((child = find_named_node (node, "ProgramVersion")) != 0) { if ((child = find_named_node (node, "ProgramVersion")) != 0) {
child->get_property (X_("created-with"), created_with); child->get_property (X_("created-with"), created_with);
child->get_property (X_("modified-with"), modified_with);
} }
setup_raid_path(_session_dir->root_path()); setup_raid_path(_session_dir->root_path());