Unified notification of source creation with Source info

New virtual function source::info used for notification after adding source
This commit is contained in:
Bruno Herbelin
2021-12-05 18:32:23 +01:00
parent bf3fc61ef7
commit 4675be7e2a
15 changed files with 111 additions and 18 deletions

View File

@@ -363,7 +363,6 @@ DeviceSource::~DeviceSource()
void DeviceSource::setDevice(const std::string &devicename)
{
device_ = devicename;
Log::Notify("Creating Source with device '%s'", device_.c_str());
int index = Device::manager().index(device_);
if (index > -1) {
@@ -589,6 +588,11 @@ glm::ivec2 DeviceSource::icon() const
return glm::ivec2(2, 14);
}
std::string DeviceSource::info() const
{
return std::string("device '") + device_ + "'";
}