Fix build with systemd disabled

This commit is contained in:
Steve Wills 2021-07-15 10:01:38 -04:00
parent 4c6315b450
commit 0976b9d6b7
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ void SyncthingApplet::setCurrentConnectionConfigIndex(int index)
const auto systemdConsideredForReconnect
= settings.systemd.apply(m_connection, currentConnectionConfig(), reconnectRequired).consideredForReconnect;
#else
const auto systemdRelevantForReconnect = false;
const auto systemdConsideredForReconnect = false;
#endif
if (!systemdConsideredForReconnect && (reconnectRequired || !m_connection.isConnected())) {
m_connection.reconnect();