enable connection auto switch on daemon by default

This commit is contained in:
woodser 2024-10-11 11:10:09 -04:00
parent 264741152a
commit aa66833d27
2 changed files with 2 additions and 2 deletions

View file

@ -588,7 +588,7 @@ public final class XmrConnectionService {
// restore auto switch
if (coreContext.isApiUser()) connectionManager.setAutoSwitch(connectionList.getAutoSwitch());
else connectionManager.setAutoSwitch(true);
else connectionManager.setAutoSwitch(true); // auto switch is always enabled on desktop ui
// start local node if applicable
maybeStartLocalNode();

View file

@ -62,7 +62,7 @@ public class EncryptedConnectionList implements PersistableEnvelope, PersistedDa
private final Map<String, EncryptedConnection> items = new HashMap<>();
private @NonNull String currentConnectionUrl = "";
private long refreshPeriod; // -1 means no refresh, 0 means default, >0 means custom
private boolean autoSwitch;
private boolean autoSwitch = true;
@Inject
public EncryptedConnectionList(PersistenceManager<EncryptedConnectionList> persistenceManager,