mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Source info() gives type, InfoVisitor gives instance info
Changed (back) to clean use of source->info() to return type dependent info string. The InfoVisitor gives unified detailed information about instance.
This commit is contained in:
@@ -687,7 +687,10 @@ glm::ivec2 DeviceSource::icon() const
|
||||
|
||||
std::string DeviceSource::info() const
|
||||
{
|
||||
return std::string("device '") + device_ + "'";
|
||||
if ( device_.find("Screen") != std::string::npos )
|
||||
return "Screen capture";
|
||||
else
|
||||
return "Device";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user