record_play_mixer: report set version in state

Give the version in the state-report only if it is set.

Issue #5174.
This commit is contained in:
Josef Söntgen 2024-04-16 15:51:38 +02:00 committed by Christian Helmuth
parent c822dc0f18
commit e0f5a2ddc5

View File

@ -122,7 +122,9 @@ struct Mixer::Main : Record_session::Operations, Play_session::Operations
void _update_state_report()
{
_state_reporter.generate([&] (Xml_generator &xml) {
xml.attribute("version", _version);
if (_version != "")
xml.attribute("version", _version);
_generate_state_report(xml);
});
}