Merge pull request #101 from swills/non-systemd-build-fix

Fix build with systemd disabled
This commit is contained in:
Martchus 2021-07-15 17:06:02 +02:00 committed by GitHub
commit aabd4215ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();