1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-18 05:15:54 +01:00

Simple mode: don't override bootstrap daemon textbox

This commit is contained in:
selsta 2020-02-16 14:54:57 +01:00
parent eb7fae92ef
commit 872b18d5af
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
2 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ Rectangle {
visible: (
!appWindow.disconnected &&
!persistentSettings.useRemoteNode &&
persistentSettings.bootstrapNodeAddress == "auto"
(persistentSettings.bootstrapNodeAddress == "auto" || persistentSettings.walletMode < 2)
)
MouseArea {

View File

@ -675,7 +675,8 @@ ApplicationWindow {
appWindow.showProcessingSplash(qsTr("Waiting for daemon to start..."))
const noSync = appWindow.walletMode === 0;
daemonManager.start(flags, persistentSettings.nettype, persistentSettings.blockchainDataDir, persistentSettings.bootstrapNodeAddress, noSync);
const bootstrapNodeAddress = persistentSettings.walletMode < 2 ? "auto" : persistentSettings.bootstrapNodeAddress
daemonManager.start(flags, persistentSettings.nettype, persistentSettings.blockchainDataDir, bootstrapNodeAddress, noSync);
}
function stopDaemon(){
@ -2079,7 +2080,6 @@ ApplicationWindow {
function applyWalletMode(mode){
if (mode < 2) {
persistentSettings.useRemoteNode = false;
persistentSettings.bootstrapNodeAddress = "auto";
if (middlePanel.settingsView.settingsStateViewState === "Node" || middlePanel.settingsView.settingsStateViewState === "Log") {
middlePanel.settingsView.settingsStateViewState = "Wallet"