mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
enable connection auto switch on daemon by default (#1320)
This commit is contained in:
parent
264741152a
commit
ddb48d1846
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue