mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Make sure listener does NOT restart when settings are updated, but DBus address did not change (set member correctly)
This commit is contained in:
committed by
Mat Sutcliffe
parent
add649c321
commit
741843d0c6
@@ -45,19 +45,19 @@ namespace BlackMisc
|
||||
|
||||
void CXSwiftBusConfigWriter::updateInXPlane9()
|
||||
{
|
||||
QString path = CXPlaneUtil::xswiftbusPluginDir(CXPlaneUtil::xplane9Dir());
|
||||
const QString path = CXPlaneUtil::xswiftbusPluginDir(CXPlaneUtil::xplane9Dir());
|
||||
if (!path.isEmpty()) { writeTo(path); }
|
||||
}
|
||||
|
||||
void CXSwiftBusConfigWriter::updateInXPlane10()
|
||||
{
|
||||
QString path = CXPlaneUtil::xswiftbusPluginDir(CXPlaneUtil::xplane10Dir());
|
||||
const QString path = CXPlaneUtil::xswiftbusPluginDir(CXPlaneUtil::xplane10Dir());
|
||||
if (!path.isEmpty()) { writeTo(path); }
|
||||
}
|
||||
|
||||
void CXSwiftBusConfigWriter::updateInXPlane11()
|
||||
{
|
||||
QString path = CXPlaneUtil::xswiftbusPluginDir(CXPlaneUtil::xplane11Dir());
|
||||
const QString path = CXPlaneUtil::xswiftbusPluginDir(CXPlaneUtil::xplane11Dir());
|
||||
if (!path.isEmpty()) { writeTo(path); }
|
||||
}
|
||||
|
||||
|
||||
@@ -1302,14 +1302,14 @@ namespace BlackSimPlugin
|
||||
if (this->isShuttingDown()) { return; }
|
||||
Q_ASSERT_X(!CThreadUtils::isCurrentThreadApplicationThread(), Q_FUNC_INFO, "Expect to run in background");
|
||||
|
||||
const QString dbusAddress = m_xSwiftBusServerSettings.getThreadLocal().getDBusServerAddressQt();
|
||||
if (CDBusServer::isSessionOrSystemAddress(dbusAddress))
|
||||
m_dBusServerAddress = m_xSwiftBusServerSettings.getThreadLocal().getDBusServerAddressQt();
|
||||
if (CDBusServer::isSessionOrSystemAddress(m_dBusServerAddress))
|
||||
{
|
||||
checkConnectionViaBus(dbusAddress);
|
||||
checkConnectionViaBus(m_dBusServerAddress);
|
||||
}
|
||||
else if (CDBusServer::isQtDBusAddress(dbusAddress))
|
||||
else if (CDBusServer::isQtDBusAddress(m_dBusServerAddress))
|
||||
{
|
||||
checkConnectionViaPeer(dbusAddress);
|
||||
checkConnectionViaPeer(m_dBusServerAddress);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user