From 8eb4f0db2a016536d96872a0a2d6a6bdffa09b33 Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 30 Jan 2019 15:09:45 +0100 Subject: [PATCH 1/2] Force save daemon flags --- pages/settings/SettingsNode.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/settings/SettingsNode.qml b/pages/settings/SettingsNode.qml index 3b62a43f..dbf8bf2b 100644 --- a/pages/settings/SettingsNode.qml +++ b/pages/settings/SettingsNode.qml @@ -362,6 +362,7 @@ Rectangle{ if (appWindow.daemonRunning) { appWindow.stopDaemon(); } else { + persistentSettings.daemonFlags = daemonFlags.text; appWindow.startDaemon(persistentSettings.daemonFlags); } } @@ -407,8 +408,9 @@ Rectangle{ labelText: qsTr("Daemon startup flags") + translationManager.emptyString placeholderText: qsTr("(optional)") + translationManager.emptyString placeholderFontSize: 15 * scaleRatio - text: appWindow.persistentSettings.daemonFlags + text: persistentSettings.daemonFlags addressValidation: false + onEditingFinished: persistentSettings.daemonFlags = daemonFlags.text; } } From 515d051c6aacd38c2c0b9c6881adebd6579b206c Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 30 Jan 2019 15:13:30 +0100 Subject: [PATCH 2/2] daemonFlags input: fillWidth and force wrap (multiline) --- pages/settings/SettingsNode.qml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/pages/settings/SettingsNode.qml b/pages/settings/SettingsNode.qml index dbf8bf2b..dbbe6024 100644 --- a/pages/settings/SettingsNode.qml +++ b/pages/settings/SettingsNode.qml @@ -396,22 +396,18 @@ Rectangle{ } } - RowLayout { - id: daemonFlagsRow - - MoneroComponents.LineEditMulti { - id: daemonFlags - Layout.preferredWidth: 200 - Layout.fillWidth: true - labelFontSize: 14 * scaleRatio - fontSize: 15 * scaleRatio - labelText: qsTr("Daemon startup flags") + translationManager.emptyString - placeholderText: qsTr("(optional)") + translationManager.emptyString - placeholderFontSize: 15 * scaleRatio - text: persistentSettings.daemonFlags - addressValidation: false - onEditingFinished: persistentSettings.daemonFlags = daemonFlags.text; - } + MoneroComponents.LineEditMulti { + id: daemonFlags + Layout.fillWidth: true + labelFontSize: 14 * scaleRatio + fontSize: 15 * scaleRatio + wrapMode: Text.WrapAnywhere + labelText: qsTr("Daemon startup flags") + translationManager.emptyString + placeholderText: qsTr("(optional)") + translationManager.emptyString + placeholderFontSize: 15 * scaleRatio + text: persistentSettings.daemonFlags + addressValidation: false + onEditingFinished: persistentSettings.daemonFlags = daemonFlags.text; } RowLayout {