Unified Information string on Group Source

This commit is contained in:
Bruno
2022-03-28 10:57:32 +02:00
parent ad438ef339
commit d10b809687
2 changed files with 2 additions and 2 deletions

View File

@@ -541,7 +541,7 @@ void Mixer::deleteSource(Source *s)
session_->deleteSource(s);
// log
Log::Notify("Source %s deleted.", name.c_str());
Log::Notify("Source '%s' deleted.", name.c_str());
}
// cancel transition source in TRANSITION view

View File

@@ -401,7 +401,7 @@ glm::ivec2 SessionGroupSource::icon() const
std::string SessionGroupSource::info() const
{
if (session_)
return std::string("group of ") + std::to_string(session_->numSource()) + " sources";
return std::string("group of ") + std::to_string(session_->numSource()) + " source" + (session_->numSource()>1 ? "s" : "");
else
return std::string("undefined group.");
}