enable connection auto switch on daemon by default (#1320)

This commit is contained in:
woodser 2024-10-12 06:18:06 -04:00 committed by GitHub
parent 264741152a
commit ddb48d1846
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -588,7 +588,7 @@ public final class XmrConnectionService {
// restore auto switch // restore auto switch
if (coreContext.isApiUser()) connectionManager.setAutoSwitch(connectionList.getAutoSwitch()); 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 // start local node if applicable
maybeStartLocalNode(); maybeStartLocalNode();

View file

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