mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
DaemonManager: start monerod with '--non-interactive' cli option set
This commit is contained in:
parent
c18614f96f
commit
d83f14799e
2 changed files with 2 additions and 1 deletions
|
@ -398,7 +398,7 @@ Rectangle{
|
||||||
placeholderFontSize: 15
|
placeholderFontSize: 15
|
||||||
text: persistentSettings.daemonFlags
|
text: persistentSettings.daemonFlags
|
||||||
addressValidation: false
|
addressValidation: false
|
||||||
error: text.match(/(^|\s)--(data-dir|bootstrap-daemon-address)/)
|
error: text.match(/(^|\s)--(data-dir|bootstrap-daemon-address|non-interactive)/)
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
if (!daemonFlags.error) {
|
if (!daemonFlags.error) {
|
||||||
persistentSettings.daemonFlags = daemonFlags.text;
|
persistentSettings.daemonFlags = daemonFlags.text;
|
||||||
|
|
|
@ -90,6 +90,7 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const
|
||||||
}
|
}
|
||||||
|
|
||||||
arguments << "--check-updates" << "disabled";
|
arguments << "--check-updates" << "disabled";
|
||||||
|
arguments << "--non-interactive";
|
||||||
|
|
||||||
// --max-concurrency based on threads available.
|
// --max-concurrency based on threads available.
|
||||||
int32_t concurrency = qMax(1, QThread::idealThreadCount() / 2);
|
int32_t concurrency = qMax(1, QThread::idealThreadCount() / 2);
|
||||||
|
|
Loading…
Reference in a new issue