Consider metered setting also when autostarting Syncthing
This commit is contained in:
parent
e2d6a3b774
commit
53f4ac6fcb
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue