Virtual Monitor: always provide dbus path

The plugin should always be loaded, as:
- we can provide a virtual display over VNC, even if the device isn't capable to use virtual displays itself (`krfb-virtualmonitor`)
- we would do the capabilities check regardless, if !670 gets merged
- hiding the DBus path doesn't trigger the `PluginChecker.qml` to think the plugin is unavailable, it just doesn't work
- -> is this a bug or intended behaviour?
This commit is contained in:
Fabian Arndt 2024-05-31 20:31:21 +00:00
parent a2c2c310fa
commit bfdb1c7ff5

View file

@ -119,10 +119,6 @@ void VirtualMonitorPlugin::receivePacket(const NetworkPacket &received)
QString VirtualMonitorPlugin::dbusPath() const
{
// Don't offer the feature if krfb-virtualmonitor is not around
if (!m_capabilitiesLocal.virtualMonitor)
return {};
return QLatin1String("/modules/kdeconnect/devices/%1/virtualmonitor").arg(device()->id());
}