diff --git a/widgets/misc/syncthinglauncher.cpp b/widgets/misc/syncthinglauncher.cpp index 00c0fd6..767d079 100644 --- a/widgets/misc/syncthinglauncher.cpp +++ b/widgets/misc/syncthinglauncher.cpp @@ -88,7 +88,11 @@ void SyncthingLauncher::handleProcessFinished(int exitCode, QProcess::ExitStatus void SyncthingLauncher::runLibSyncthing(const LibSyncthing::RuntimeOptions &runtimeOptions) { +#ifdef SYNCTHING_WIDGETS_USE_LIBSYNCTHING LibSyncthing::runSyncthing(runtimeOptions); +#else + VAR_UNUSED(runtimeOptions) +#endif } SyncthingLauncher &syncthingLauncher()