mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 12:09:22 +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
|
||||
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();
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue