mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #392 Added the "Install XBus" feature
* New "Install XBus" button in the CSimulatorXPlaneConfigWindow * CSettingsSimulatorComponent cleanup
This commit is contained in:
committed by
Mathew Sutcliffe
parent
06c17d7d09
commit
cf3102333b
@@ -527,6 +527,7 @@ namespace BlackSimPlugin
|
||||
}
|
||||
else
|
||||
{
|
||||
CLogMessage(this).debug() << "Starting XBus on %1" << m_xbusServerSetting.get();
|
||||
m_conn = CSimulatorXPlane::connectionFromString(m_xbusServerSetting.get());
|
||||
m_watcher = new QDBusServiceWatcher(xbusServiceName(), m_conn, QDBusServiceWatcher::WatchForRegistration, this);
|
||||
connect(m_watcher, &QDBusServiceWatcher::serviceRegistered, this, &CSimulatorXPlaneListener::ps_serviceRegistered);
|
||||
@@ -568,7 +569,6 @@ namespace BlackSimPlugin
|
||||
{
|
||||
// user changed settings, restart the listener
|
||||
if (m_watcher) {
|
||||
CLogMessage(this).debug() << "XP: Restarting listener";
|
||||
stop();
|
||||
start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user