mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-11 05:14:34 +00:00
Only prompt for daemon auto start when daemon address is local
This commit is contained in:
parent
d0f3194574
commit
86e9f3811b
2 changed files with 11 additions and 11 deletions
12
main.qml
12
main.qml
|
@ -302,7 +302,7 @@ ApplicationWindow {
|
||||||
middlePanel.transferView.updatePriorityDropdown();
|
middlePanel.transferView.updatePriorityDropdown();
|
||||||
|
|
||||||
// If wallet isnt connected and no daemon is running - Ask
|
// If wallet isnt connected and no daemon is running - Ask
|
||||||
if(!walletInitialized && status === Wallet.ConnectionStatus_Disconnected && !daemonManager.running(persistentSettings.testnet)){
|
if(isDaemonLocal() && !walletInitialized && status === Wallet.ConnectionStatus_Disconnected && !daemonManager.running(persistentSettings.testnet)){
|
||||||
daemonManagerDialog.open();
|
daemonManagerDialog.open();
|
||||||
}
|
}
|
||||||
// initialize transaction history once wallet is initialized first time;
|
// initialize transaction history once wallet is initialized first time;
|
||||||
|
@ -1376,4 +1376,14 @@ ApplicationWindow {
|
||||||
onTriggered: checkUpdates()
|
onTriggered: checkUpdates()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isDaemonLocal() {
|
||||||
|
var daemonAddress = appWindow.persistentSettings.daemon_address
|
||||||
|
if (daemonAddress === "")
|
||||||
|
return false
|
||||||
|
var daemonHost = daemonAddress.split(":")[0]
|
||||||
|
if (daemonHost === "127.0.0.1" || daemonHost === "localhost")
|
||||||
|
return true
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,16 +37,6 @@ Rectangle {
|
||||||
color: "#F0EEEE"
|
color: "#F0EEEE"
|
||||||
property var currentHashRate: 0
|
property var currentHashRate: 0
|
||||||
|
|
||||||
function isDaemonLocal() {
|
|
||||||
var daemonAddress = appWindow.persistentSettings.daemon_address
|
|
||||||
if (daemonAddress === "")
|
|
||||||
return false
|
|
||||||
var daemonHost = daemonAddress.split(":")[0]
|
|
||||||
if (daemonHost === "127.0.0.1" || daemonHost === "localhost")
|
|
||||||
return true
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
/* main layout */
|
/* main layout */
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: mainLayout
|
id: mainLayout
|
||||||
|
|
Loading…
Reference in a new issue