Consider metered setting also when autostarting Syncthing

This commit is contained in:
Martchus 2024-03-07 01:10:34 +01:00
parent e2d6a3b774
commit 53f4ac6fcb
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ std::vector<QtGui::ProcessWithConnection> Launcher::allProcesses()
void Launcher::autostart() const
{
auto *const launcher(SyncthingLauncher::mainInstance());
if (autostartEnabled && launcher) {
if (autostartEnabled && launcher && (!stopOnMeteredConnection || !launcher->isNetworkConnectionMetered().value_or(false))) {
launcher->launch(*this);
}
auto &toolProcs = toolProcesses();