Add message to restart server after config change
This commit is contained in:
@@ -280,6 +280,9 @@ void wivrn_server::on_server_dbus_unregistered()
|
||||
if (isHeadsetConnected())
|
||||
headsetConnectedChanged(m_headsetConnected = false);
|
||||
|
||||
if (isSessionRunning())
|
||||
sessionRunningChanged(m_sessionRunning = false);
|
||||
|
||||
if (isPairingEnabled())
|
||||
pairingEnabledChanged(m_isPairingEnabled = false);
|
||||
|
||||
@@ -361,6 +364,11 @@ void wivrn_server::on_server_properties_changed(const QString & interface_name,
|
||||
headsetConnectedChanged(m_headsetConnected = changed_properties["HeadsetConnected"].toBool());
|
||||
}
|
||||
|
||||
if (changed_properties.contains("SessionRunning"))
|
||||
{
|
||||
sessionRunningChanged(m_sessionRunning = changed_properties["SessionRunning"].toBool());
|
||||
}
|
||||
|
||||
if (changed_properties.contains("JsonConfiguration"))
|
||||
{
|
||||
jsonConfigurationChanged(m_jsonConfiguration = changed_properties["JsonConfiguration"].toString());
|
||||
|
||||
Reference in New Issue
Block a user