Apply clang-format

This commit is contained in:
Martchus 2024-02-17 18:11:58 +01:00
parent d2dc15fdde
commit 211a7942ef
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,8 @@ SyncthingNotifier::SyncthingNotifier(const SyncthingConnection &connection, QObj
, m_previousStatus(SyncthingStatus::Disconnected)
, m_ignoreInavailabilityAfterStart(15)
, m_initialized(false)
, m_logOnStderr(qEnvironmentVariableIntValue(PROJECT_VARNAME_UPPER "_LOG_ALL") || qEnvironmentVariableIntValue(PROJECT_VARNAME_UPPER "_LOG_NOTIFICATIONS"))
, m_logOnStderr(
qEnvironmentVariableIntValue(PROJECT_VARNAME_UPPER "_LOG_ALL") || qEnvironmentVariableIntValue(PROJECT_VARNAME_UPPER "_LOG_NOTIFICATIONS"))
{
connect(&connection, &SyncthingConnection::statusChanged, this, &SyncthingNotifier::handleStatusChangedEvent);
connect(&connection, &SyncthingConnection::dirCompleted, this, &SyncthingNotifier::emitSyncComplete);

View File

@ -69,7 +69,8 @@ SyncthingLauncher::SyncthingLauncher(QObject *parent)
connect(networkInformation, &QNetworkInformation::isMeteredChanged, this, [this](bool isMetered) { setNetworkConnectionMetered(isMetered); });
setNetworkConnectionMetered(networkInformation->isMetered());
} else {
std::cerr << EscapeCodes::Phrases::Error << "Unable to load network information backend to monitor metered connections, available backends:" << EscapeCodes::Phrases::End;
std::cerr << EscapeCodes::Phrases::Error
<< "Unable to load network information backend to monitor metered connections, available backends:" << EscapeCodes::Phrases::End;
const auto availableBackends = QNetworkInformation::availableBackends();
if (availableBackends.isEmpty()) {
std::cerr << "none\n";